On Mon, 1 Apr 2019 at 15:59, Todd <toddr...@gmail.com> wrote:

> Currently there is no empty set literal.  This is a hold-over from when there 
> were no sets.  Now would be a good opportunity to add one.  I suggest {} 
> become an empty set and {:} be an empty dict.

There should be no need for two styles - now that Python has type
inference, it should be possible for users to just type {} and have
the interpreter work out which was intended from context. Any
ambiguity can easily be resolved by using a type hint.

Paul
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to