From: Tim Peters Date: Tue, 28 Jan 2003 00:43:26 +0000 (+0000) Subject: Added XXX about save()'s special-casing of tuples -- I don't get it. X-Git-Tag: v2.3c1~2266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9d7c4a656592950987f1db31a0871c31705c325;p=python Added XXX about save()'s special-casing of tuples -- I don't get it. --- diff --git a/Lib/pickle.py b/Lib/pickle.py index 1f551d67b0..2805dfb7d7 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -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)