[Python-Dev] enum discussion: can someone please summarize open issues?
Guido van Rossum
guido at python.org
Mon Apr 29 06:54:14 CEST 2013
On Sunday, April 28, 2013, Ethan Furman wrote:
>
> Enums are the same: they could return brand new instances every time, and
> programs using `==` to compare will keep on working. That they don't is an
> implementation detail.
>
Whoa. In this case the identity property is not justban implementation
issue, it is part of the spec. Same for bool. (But == works too.)
--Guido
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130428/9519b0ec/attachment-0001.html>
More information about the Python-Dev
mailing list