[Python-ideas] syntax for set

average dreamingforward at gmail.com
Wed Nov 24 01:21:52 CET 2010


On Mon, Nov 22, 2010 at 3:23 AM, Jan Kaliszewski <zuo at chopin.edu.pl> wrote:
>
> > 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).
>
> That is sometimes true, but one should bend towards fixing the font problem
rather than adapting to brokenness....

m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20101123/a8dbc63f/attachment.html>


More information about the Python-ideas mailing list