[Python-3000] Set literal
Terry Reedy
tjreedy at udel.edu
Thu Jan 31 04:04:54 CET 2008
"Christian Heimes" <lists at cheimes.de> wrote in message
news:fnr21h$6h5$1 at ger.gmane.org...
| Greg Ewing wrote:
| | Personally I'm more than happy to trade set comprehensions for
optimized
| frozen set literals. My code has more 'item in fixed_set' than sets. I
| can't remember a project where I've used frozenset() instead of a tuple.
| The name is too long.
I might have preferred 'fset' to 'frozenset'. But I presume the name is
frozen.
So I might put 'fset=frozenset' at the top of a file where is gets used
alot.
More information about the Python-3000
mailing list