projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82ca59e
)
save_empty_tuple(): Comment on why we can't get rid of this.
author
Tim Peters
<tim.peters@gmail.com>
Tue, 28 Jan 2003 16:58:41 +0000
(16:58 +0000)
committer
Tim Peters
<tim.peters@gmail.com>
Tue, 28 Jan 2003 16:58:41 +0000
(16:58 +0000)
Lib/pickle.py
patch
|
blob
|
history
diff --git
a/Lib/pickle.py
b/Lib/pickle.py
index 88f03a4373cb354c6bb15e312a42fa02395423da..1b364c6a1847f30482c8fb7758befa3e2740df24 100644
(file)
--- 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)