[issue18924] Enum members are easily replaced

Eli Bendersky report at bugs.python.org
Wed Sep 4 22:18:37 CEST 2013


Eli Bendersky added the comment:

Time for your friendly devil's advocate... We're using and loving this language:

>>> class Foo:
...   bar = 2
... 
>>> f = Foo()
>>> f.bar
2
>>> f.bar = 42
>>> f.bar
42
>>> 


So let's stop trying to make enums even more alien. This is a non-issue in Python.

[Barry, how come your name in the tracker is linked to your website? me wants...]

----------
keywords: +buildbot

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18924>
_______________________________________


More information about the Python-bugs-list mailing list