[Python-ideas] syntax for set

Ben Finney ben+python at benfinney.id.au
Tue Nov 16 01:16:11 CET 2010


MRAB <python at mrabarnett.plus.com> writes:
> No, but I would vote for {,}.

−1.
The comma in the set literal syntax is used to separate items, and so
that looks like a set that explicitly *not* empty, but rather containing
(unspecified) items.
-- 
 \ “Broken promises don't upset me. I just think, why did they |
 `\ believe me?” —Jack Handey |
_o__) |
Ben Finney


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /