New submission from Edward Wang <[email protected]>:
Methods defined in Enums behave 'normally' but classes defined in Enums get
mistaken for regular values and can't be used as classes out of the box.
```python
class Outer(Enum):
a = 1
b = 2
class Inner(Enum):
foo = 10
bar = 11
```
----------
messages: 320541
nosy: edwardw
priority: normal
severity: normal
status: open
title: Enums don't support nested classes
type: behavior
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33976>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com