[issue9120] Reduce pickle size for an empty set
Raymond Hettinger
report at bugs.python.org
Tue Jun 29 23:01:53 CEST 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Will think about this one for a while. Initial reaction is that the case isn't common enough to care about, and that the 5 byte savings isn't worth the extra code path.
> By the same logic, allowing set() as an alternative
> to set([]) in python code is "premature optimization".
That wasn't an optimization -- it was needed for API
consistency with other types (i.e. list(), dict(), etc).
The zero argument form supports a use case for
polymorphic creation of an empty container regardless
of type.
----------
assignee: -> rhettinger
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9120>
_______________________________________
More information about the Python-bugs-list
mailing list