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

Skip to content

Commit a6ae9a2

Browse files
committed
save_empty_tuple(): Comment on why we can't get rid of this.
1 parent 82ca59e commit a6ae9a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/pickle.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ def save_tuple(self, obj):
515515

516516
dispatch[TupleType] = save_tuple
517517

518+
# save_empty_tuple() isn't used by anything in Python 2.3. However, I
519+
# found a Pickler subclass in Zope3 that calls it, so it's not harmless
520+
# to remove it.
518521
def save_empty_tuple(self, obj):
519522
self.write(EMPTY_TUPLE)
520523

0 commit comments

Comments
 (0)