[Python-3000] sets in P3K?
Nick Coghlan
ncoghlan at gmail.com
Thu Apr 27 14:50:22 CEST 2006
Greg Wilson wrote:
>> A set with no elements is:
>> set()
>
> I prefer Guido's earlier suggestion of {/} for the empty set (assuming no
> parsing ambiguities?):
I believe the leading '{' should be enough to clue the parser in to what's
going on (i.e. '{/<anything>' is currently a syntax error)
I think I'm a convert - +1 for set literals, with {/} for the empty set.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list