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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2197> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com