]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
save_dict(): Added a comment about the control flow NealN missed.
authorTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 16:47:59 +0000 (16:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 16:47:59 +0000 (16:47 +0000)
Lib/pickle.py

index c29f2f875d83878e0ab257fed102883bc4936234..88f03a4373cb354c6bb15e312a42fa02395423da 100644 (file)
@@ -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)