mirror of https://github.com/python/cpython
Added XXX about save()'s special-casing of tuples -- I don't get it.
This commit is contained in:
parent
22987e3cbd
commit
c9d7c4a656
|
@ -255,6 +255,7 @@ class Pickler:
|
|||
|
||||
t = type(object)
|
||||
|
||||
# XXX Why are tuples a special case here?
|
||||
if (t is TupleType) and (len(object) == 0):
|
||||
if self.bin:
|
||||
self.save_empty_tuple(object)
|
||||
|
|
Loading…
Reference in New Issue