[Python-Dev] syntactic support for sets (original) (raw)
Greg Wilson gvwilson at cs.utoronto.ca
Wed Feb 1 19:55:42 CET 2006
- Previous message: [Python-Dev] The path module PEP
- Next message: [Python-Dev] syntactic support for sets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I have a student who may be interested in adding syntactic support for sets to Python, so that:
x = {1, 2, 3, 4, 5}
and:
y = {z for z in x if (z % 2)}
would be legal. There are of course issues (what's the syntax for a frozen set? for the empty set?), but before he even starts, I'd like to know if this would ever be considered for inclusion into the language.
Thanks, Greg
p.s. please Cc: me as well as the list, since I'm no longer subscribed.
- Previous message: [Python-Dev] The path module PEP
- Next message: [Python-Dev] syntactic support for sets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]