[Python-ideas] Sets, Dictionaries
Chris Angelico
rosuav at gmail.com
Thu Mar 29 12:06:02 EDT 2018
On Fri, Mar 30, 2018 at 3:00 AM, Stephan Houben <stephanh42 at gmail.com> wrote:
> Perhaps one day we will be able to use
>
> ∅
>
> for the empty set.
> That would actually match conventional notation.
>
Maybe, but that symbol generally means the unique immutable empty set
in mathematics, so a closer equivalent would be frozenset(), in the
same way that () gives you a singleton immutable empty tuple. But yes,
I would like to some day have a literal for an empty set. Just not
"{}".
ChrisA
More information about the Python-ideas
mailing list