[Python-3000] sets in P3K? (original) (raw)
Greg Wilson gvwilson at cs.utoronto.ca
Tue Apr 25 03:39:35 CEST 2006
- Previous message: [Python-3000] sets in P3K?
- Next message: [Python-3000] sets in P3K?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Guido: > sense that {F(x) for x in S if P(x)}, ough to be valid syntax if we > support {1, 2, 3} -- IOW the form {} should mean the same as > set().
Alex: I dislike that as much as I dislike [] as a shorthand for list(), but I have no trouble admitting that if we have the [...] form, it's consistent to have the {...} one too.
Greg: So it really does come down to finding an unlikely-to-confuse notation for the empty set? If people would like to send me suggestions, I can try an experiment in class (I start teaching a new crop of second-year students Python in May).
Thanks, Greg
- Previous message: [Python-3000] sets in P3K?
- Next message: [Python-3000] sets in P3K?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]