This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AlexWaygood
Recipients AlexWaygood, barry, eli.bendersky, ethan.furman, serhiy.storchaka
Date 2021-10-29.17:06:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635527215.87.0.397894981659.issue45535@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-10-29 17:06:55AlexWaygoodsetrecipients: + AlexWaygood, barry, eli.bendersky, ethan.furman, serhiy.storchaka
2021-10-29 17:06:55AlexWaygoodsetmessageid: <1635527215.87.0.397894981659.issue45535@roundup.psfhosted.org>
2021-10-29 17:06:55AlexWaygoodlinkissue45535 messages
2021-10-29 17:06:55AlexWaygoodcreate