[issue2197] Further simplify dict literal bytecode

Alexander Belopolsky report at bugs.python.org
Wed Feb 27 14:29:55 CET 2008


Alexander Belopolsky added the comment:

I did not think of the insertion after creation change of semantics.  Do 
I understand that this is important when keys have custom 
comparison/hash methods with side-effects.  If it is important for the 
language to guarantee the create/insert order in building dict literals, 
it would be unfortunate if that order were specified differently for 
dict and set literals.

I will think some more about the stack issue.  There is a valid argument 
that large dict literals will be more common than large set literals, so 
the stack issue is more important for dicts.

BTW, what is the status of making set literal a frozen set proposal?

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2197>
__________________________________


More information about the Python-bugs-list mailing list