mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
save_empty_tuple(): Comment on why we can't get rid of this.
This commit is contained in:
parent
82ca59e002
commit
a6ae9a2128
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue