[Python-3000] sets in P3K?

Nick Coghlan ncoghlan at gmail.com
Thu Apr 27 15:46:30 CEST 2006


Ivan Krstic wrote:
> 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 could certainly live with set(). The ASCII-art phi might be trying to be 
overly cute :)

> 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.)

... is the only other atom I can think of. Although there's always siht[::-1] :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list