Message274975
Vedran commented:
> This is something fundamental: it is breaking the promise that class body
> is a suite of commands, where Python statements (such as assignment) have
> their usual semantics.
I find it curious that you're okay with
>>> class Color(Enum):
... red = 1
...
>>> Color.red == 1
False
But you find this completely incomprehensible
>>> class Color(Enum):
... red = _auto_
... blue = _auto_
...
>>> Color.red == Color.blue
False |
|
Date |
User |
Action |
Args |
2016-09-08 06:14:10 | ethan.furman | set | recipients:
+ ethan.furman, barry, rhettinger, ezio.melotti, r.david.murray, eli.bendersky, python-dev, martin.panter, serhiy.storchaka, veky |
2016-09-08 06:14:10 | ethan.furman | set | messageid: <1473315250.75.0.418416084466.issue23591@psf.upfronthosting.co.za> |
2016-09-08 06:14:10 | ethan.furman | link | issue23591 messages |
2016-09-08 06:14:10 | ethan.furman | create | |
|