Message405323
I would argue it's quite important for `IntEnum` to have the dunder methods inherited from `int` show up in `help()`. Dunder methods indicate that an object has certain behaviours, so it's important for a user to be able to verify that an `IntEnum` member has similar behaviours to an `int` instance. `IntEnum` is advertised in the documentation as something that can be used everywhere where an integer is expected; it's surprising when the output from `help()` is hugely abbreviated for `IntEnum` relative to `int`.
But, I agree that my first draft of this PR is more complex than I'd like it to be. |
|
Date |
User |
Action |
Args |
2021-10-29 17:06:55 | AlexWaygood | set | recipients:
+ AlexWaygood, barry, eli.bendersky, ethan.furman, serhiy.storchaka |
2021-10-29 17:06:55 | AlexWaygood | set | messageid: <1635527215.87.0.397894981659.issue45535@roundup.psfhosted.org> |
2021-10-29 17:06:55 | AlexWaygood | link | issue45535 messages |
2021-10-29 17:06:55 | AlexWaygood | create | |
|