[Python-ideas] syntax for set
Jan Kaliszewski
zuo at chopin.edu.pl
Mon Nov 22 11:23:41 CET 2010
Jan Kaliszewski dixit (2010-11-22, 11:16):
> I'd be happy with:
>
> * {:} for empty dict() (as a collection of key-value *pairs*)
> * {.} for empty set() (as a similar collection of *single* elements)
>
> And {} for empty dict() as well -- to keep compatibility (maybe to be
> deprecated later).
PS. Another argument: {} is criticized for its similarity to () (when using some fonts).
More information about the Python-ideas
mailing list