Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82ca59e

Browse files
committed
save_dict(): Added a comment about the control flow NealN missed.
1 parent 13a25fb commit 82ca59e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/pickle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ def save_dict(self, obj):
561561
save(value)
562562
write(SETITEMS)
563563
return
564-
564+
# else (dict is empty or a singleton), fall through to the
565+
# SETITEM code at the end
565566
else: # proto 0 -- can't use EMPTY_DICT or SETITEMS
566567
write(MARK + DICT)
567568
self.memoize(obj)

0 commit comments

Comments
 (0)