summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-01-28 16:47:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-01-28 16:47:59 (GMT)
commit82ca59e002ff516754e6258513e2d3c07cdd6e71 (patch)
treefb07b11d0f3549ec903878660af758e7a6fa60ba /Lib/pickle.py
parent13a25fb8e654c181843b99d3121bbf5af5bbd0f3 (diff)
downloadcpython-82ca59e002ff516754e6258513e2d3c07cdd6e71.zip
cpython-82ca59e002ff516754e6258513e2d3c07cdd6e71.tar.gz
cpython-82ca59e002ff516754e6258513e2d3c07cdd6e71.tar.bz2
save_dict(): Added a comment about the control flow NealN missed.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index c29f2f8..88f03a4 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -561,7 +561,8 @@ class Pickler:
save(value)
write(SETITEMS)
return
-
+ # else (dict is empty or a singleton), fall through to the
+ # SETITEM code at the end
else: # proto 0 -- can't use EMPTY_DICT or SETITEMS
write(MARK + DICT)
self.memoize(obj)