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 ethan.furman
Recipients ethan.furman, rhettinger, serhiy.storchaka, xtreak
Date 2020-03-27.18:15:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585332947.04.0.803826052243.issue40084@roundup.psfhosted.org>
In-reply-to
Content
Adding to the existing dir() is as easy as writing one's own __dir__.

I think using the instance dict and omitting any keys with a leading underscore will do the right thing most of the time.

The fix should into `Enum` and not just `IntEnum` as other enumerations could also have extra attributes.
History
Date User Action Args
2020-03-27 18:15:47ethan.furmansetrecipients: + ethan.furman, rhettinger, serhiy.storchaka, xtreak
2020-03-27 18:15:47ethan.furmansetmessageid: <1585332947.04.0.803826052243.issue40084@roundup.psfhosted.org>
2020-03-27 18:15:47ethan.furmanlinkissue40084 messages
2020-03-27 18:15:46ethan.furmancreate