[Python-Dev] syntactic support for sets (original) (raw)
Raymond Hettinger raymond.hettinger at verizon.net
Wed Feb 1 21:16:58 CET 2006
- Previous message: [Python-Dev] syntactic support for sets
- Next message: [Python-Dev] syntactic support for sets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Phillip J. Eby]
The only case that looks slightly less than optimal is:
set((1, 2, 3, 4, 5)) But I'm not sure that it warrants a special syntax just to get rid of the extra ().
The PEP records that Tim argued for leaving the extra parentheses. What would you do with {'title'} -- create a four element set consisting of letters or a single element set consisting of a string?
Raymond
- Previous message: [Python-Dev] syntactic support for sets
- Next message: [Python-Dev] syntactic support for sets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]