Message294813
You didn't instantiate auto; read the docs ( https://docs.python.org/3/library/enum.html#using-automatic-values ): auto is a class, you instantiate it to make instances for use. If you omit the parens, it's just a plain class, not a special value for automatic value assignment.
You want:
class E(enum.Enum):
A = enum.auto()
B = enum.auto() |
|
Date |
User |
Action |
Args |
2017-05-31 05:56:40 | josh.r | set | recipients:
+ josh.r, ethan.furman, max |
2017-05-31 05:56:40 | josh.r | set | messageid: <1496210200.48.0.610199145867.issue30517@psf.upfronthosting.co.za> |
2017-05-31 05:56:40 | josh.r | link | issue30517 messages |
2017-05-31 05:56:40 | josh.r | create | |
|