[issue18924] Enum members are easily replaced

Ethan Furman report at bugs.python.org
Wed Sep 4 21:47:27 CEST 2013


New submission from Ethan Furman:

Python 3.4.0a1+ (default:33727fbb4668+, Aug 31 2013, 12:34:55) 
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
--> import enum
--> class Test(enum.Enum):
...   this = 'that'
... 
--> Test.this
<Test.this: 'that'>
--> Test.this = 9
--> Test.this
9

I'm pretty sure we don't want that.

----------
assignee: ethan.furman
messages: 196945
nosy: barry, eli.bendersky, ethan.furman
priority: normal
severity: normal
status: open
title: Enum members are easily replaced
type: behavior
versions: Python 3.4

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


More information about the Python-bugs-list mailing list