Alexander Belopolsky added the comment: Hmm, it looks like this was considered before (issue402227), but back then there were no set literals. If stack-saving approach is better for dicts, it should be better for sets as well. In any case, maybe it is time to revisit the issue and decide on the best way to treat both set and dict literals. The truth may very well be that up to certain size it is better to build set/dict all at once from the stack, but past that size incremental insertion is better. The hybrid approach would be easy to implement.
__________________________________ 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