From: Tim Peters Date: Tue, 28 Jan 2003 16:47:59 +0000 (+0000) Subject: save_dict(): Added a comment about the control flow NealN missed. X-Git-Tag: v2.3c1~2230 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82ca59e002ff516754e6258513e2d3c07cdd6e71;p=thirdparty%2FPython%2Fcpython.git save_dict(): Added a comment about the control flow NealN missed. --- diff --git a/Lib/pickle.py b/Lib/pickle.py index c29f2f875d83..88f03a4373cb 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)