]> granicus.if.org Git - python/commitdiff
save_empty_tuple(): Comment on why we can't get rid of this.
authorTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 16:58:41 +0000 (16:58 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 16:58:41 +0000 (16:58 +0000)
Lib/pickle.py

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