From 82ca59e002ff516754e6258513e2d3c07cdd6e71 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 28 Jan 2003 16:47:59 +0000 Subject: save_dict(): Added a comment about the control flow NealN missed. --- Lib/pickle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12