make_enum doesn't enforce "valid Python identifiers" limitation
Bug #803570 reported by
ssteinerX
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flufl.enum |
Fix Released
|
Low
|
Barry Warsaw |
Bug Description
>>> Foo = flufl.enum.
>>> Foo.ham
<EnumValue: Foo.ham [int=1]>
>>> Doo = flufl.enum.
>>> Doo
<Foo {1: 1, 2: 2, 3: 3}>
>>> Doo.1
File "<stdin>", line 1
Doo.1
^
SyntaxError: invalid syntax
>>> Doo(1)
<EnumValue: Foo.1 [int=1]>
Not sure whether this is worth dealing with, more of an observation.
Changed in flufl.enum: | |
milestone: | none → 3.2 |
status: | Confirmed → Fix Committed |
assignee: | nobody → Barry Warsaw (barry) |
Changed in flufl.enum: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Yeah, probably worth fixing, low priority though. :)