Message108951
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. |
|
Date |
User |
Action |
Args |
2010-06-29 21:01:53 | rhettinger | set | recipients:
+ rhettinger, fdrake, mark.dickinson, belopolsky, pitrou, alexandre.vassalotti |
2010-06-29 21:01:53 | rhettinger | set | messageid: <1277845313.36.0.628721581233.issue9120@psf.upfronthosting.co.za> |
2010-06-29 21:01:51 | rhettinger | link | issue9120 messages |
2010-06-29 21:01:51 | rhettinger | create | |
|