alexander belopolsky ynarxoxgakwehevgynagmailcom tue mar 25 2008 506 pm adam olsen wrote tue mar 25 2008 243 pm alexander belopolsky wrote tue mar 25 2008 426 pm adam olsen wrote even frozenset set works well never modified produced bytecode current implementation precomputed constants must hashable compiler uses dictionary lookup order eliminate duplicates course implementation detail would actually hard work around builtin types literal syntax may deemed constant anyway fail see thats relevant frozenset vs set comment realized right hit send button comment optimizing frozenset wrong respect frozenset vs set comment understand proposal transforming current dislambda 123 1 0 load_global 0 3 load_const 0 1 6 load_const 1 2 9 load_const 2 3 12 build_set 3 15 compare_op 6 18 return_value 1 0 load_global 0 3 load_const 3 1 2 3 6 compare_op 6 9 return_value work 1 2 3 hashable possible 1 0 load_global 0 3 load_const 3 frozenset1 2 3 6 compare_op 6 9 return_value hand dialog increasingly offtopic original question whether good idea unify set dict literals processed please comment following options 1 nothing dicts built incrementally sets batch 2 implement batch processing dict literals 3 implement incremental processing sets order preference 2 1 3 _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom wed 06 aug 2008 202710 0400 python3000 dict literal bytecode