Added XXX about save()'s special-casing of tuples -- I don't get it.

This commit is contained in:
Tim Peters 2003-01-28 00:43:26 +00:00
parent 22987e3cbd
commit c9d7c4a656
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ class Pickler:
t = type(object) t = type(object)
# XXX Why are tuples a special case here?
if (t is TupleType) and (len(object) == 0): if (t is TupleType) and (len(object) == 0):
if self.bin: if self.bin:
self.save_empty_tuple(object) self.save_empty_tuple(object)