From: Tim Peters Date: Tue, 28 Jan 2003 16:58:41 +0000 (+0000) Subject: save_empty_tuple(): Comment on why we can't get rid of this. X-Git-Tag: v2.3c1~2229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6ae9a2128a85301ded9381c181539720ce82ca0;p=thirdparty%2FPython%2Fcpython.git save_empty_tuple(): Comment on why we can't get rid of this. --- diff --git a/Lib/pickle.py b/Lib/pickle.py index 88f03a4373cb..1b364c6a1847 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -515,6 +515,9 @@ class Pickler: dispatch[TupleType] = save_tuple + # save_empty_tuple() isn't used by anything in Python 2.3. However, I + # found a Pickler subclass in Zope3 that calls it, so it's not harmless + # to remove it. def save_empty_tuple(self, obj): self.write(EMPTY_TUPLE)