[Python-3000] sets in P3K?

Ivan Krstic krstic at fas.harvard.edu
Thu Apr 27 15:11:45 CEST 2006


Nick Coghlan wrote:
> I think I'm a convert - +1 for set literals, with {/} for the empty set.

I'm +1 on set literals, but -1 on {/} for the empty set. I much prefer
set() -- {/} seems too Perlesque and magical-looking. I don't think we
have three subsequent punctuation marks as an atom anywhere else in
Python, do we? (Except for """, but those are three of the same, so it
doesn't look that strange to me.)

-- 
Ivan Krstic <krstic at fas.harvard.edu> | GPG: 0x147C722D


More information about the Python-3000 mailing list