Ethan Furman added the comment:

Yes, as a matter of fact:

--> Test.this
<Test.this: 'that'>
--> Test.this = 'other'
--> Test.this
'other'
--> Test('that')
<Test.this: 'that'>
--> list(Test)
[<Test.this: 'that'>]

As you can see, the Test Enum becomes inconsistent if this is allowed.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18924>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to