René's URL Explorer Experiment


Title: bpo-45535: Improve output of Enum ``dir()`` by AlexWaygood · Pull Request #29316 · python/cpython · GitHub

Open Graph Title: bpo-45535: Improve output of Enum ``dir()`` by AlexWaygood · Pull Request #29316 · python/cpython

X Title: bpo-45535: Improve output of Enum ``dir()`` by AlexWaygood · Pull Request #29316 · python/cpython

Description: This PR modifies the EnumType.__dir__() and Enum.__dir__() to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of help(). This change also make...

Open Graph Description: This PR modifies the EnumType.__dir__() and Enum.__dir__() to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of help(). This change also make...

X Description: This PR modifies the EnumType.__dir__() and Enum.__dir__() to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of help(). This change also make...

Opengraph URL: https://github.com/python/cpython/pull/29316

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:752e4141-22d8-f57d-dc1e-348850ca9622
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE2C0:28C591:BBC39B:107113A:696A1F78
html-safe-noncef124f9f12ca4717caf811ada6f54597ec9a043592af2639d8f04e72f24766b31
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkMwOjI4QzU5MTpCQkMzOUI6MTA3MTEzQTo2OTZBMUY3OCIsInZpc2l0b3JfaWQiOiI4ODYyNTU0MDczNzY0MzM5NTc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac783705b28cba663bc9060c1538fd90629797c0278e8ea5ae6460f3852b6e58d1
hovercard-subject-tagpull_request:769348432
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/29316/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a34b98a5bf51b93774c970c5e3df6fbc284c2281560aea868e9a332467d8ab08/python/cpython/pull/29316
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a34b98a5bf51b93774c970c5e3df6fbc284c2281560aea868e9a332467d8ab08/python/cpython/pull/29316
og:image:altThis PR modifies the EnumType.__dir__() and Enum.__dir__() to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of help(). This change also make...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexWaygood
hostnamegithub.com
expected-hostnamegithub.com
None014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released515f6f09fa57a93bf90355cb894eb84ca4f458f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/29316#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29316
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29316
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/29316
Reloadhttps://github.com/python/cpython/pull/29316
Reloadhttps://github.com/python/cpython/pull/29316
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/29316
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/29316
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/29316#issue-comment-box
ethanfurmanhttps://github.com/ethanfurman
python:mainhttps://github.com/python/cpython/tree/main
AlexWaygood:Enum-dir-improvementshttps://github.com/AlexWaygood/cpython/tree/Enum-dir-improvements
bpo-45535: Improve output of Enum dir() https://github.com/python/cpython/pull/29316#top
ethanfurmanhttps://github.com/ethanfurman
python:mainhttps://github.com/python/cpython/tree/main
AlexWaygood:Enum-dir-improvementshttps://github.com/AlexWaygood/cpython/tree/Enum-dir-improvements
Conversation 13 https://github.com/python/cpython/pull/29316
Commits 13 https://github.com/python/cpython/pull/29316/commits
Checks 0 https://github.com/python/cpython/pull/29316/checks
Files changed https://github.com/python/cpython/pull/29316/files
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Oct 29, 2021https://github.com/python/cpython/pull/29316#issue-1039693339
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://bugs.python.org/issue45535https://bugs.python.org/issue45535
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/AlexWaygood
bpo-45535: Improve output of Enum dir()https://github.com/python/cpython/pull/29316/commits/0ed36bc3068f9772f5ba1534ab6863ef3df10990
0ed36bchttps://github.com/python/cpython/pull/29316/commits/0ed36bc3068f9772f5ba1534ab6863ef3df10990
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
ethanfurmanhttps://github.com/ethanfurman
code ownerhttps://github.com/python/cpython/blob/d9575218d7ab3d85b15ce3d4779660b9b724d343/.github/CODEOWNERS#L138
October 29, 2021 15:35https://github.com/python/cpython/pull/29316#event-5541382284
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Oct 29, 2021https://github.com/python/cpython/pull/29316#event-5541382501
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 29, 2021https://github.com/python/cpython/pull/29316#event-5541382670
AlexWaygoodhttps://github.com/AlexWaygood
October 29, 2021 19:27https://github.com/python/cpython/pull/29316#commits-pushed-bb4c147
https://github.com/AlexWaygood
Simplify Enum.__dir__ slightlyhttps://github.com/python/cpython/pull/29316/commits/bb4c147962ff573b2daa77b3aa8aba25baaa7f03
bb4c147https://github.com/python/cpython/pull/29316/commits/bb4c147962ff573b2daa77b3aa8aba25baaa7f03
https://github.com/AlexWaygood
Simplify diff from upstream a littlehttps://github.com/python/cpython/pull/29316/commits/526d88b1264a516ae20a4fe7b0f0231289dd5e3c
526d88bhttps://github.com/python/cpython/pull/29316/commits/526d88b1264a516ae20a4fe7b0f0231289dd5e3c
https://github.com/AlexWaygood
Update enum.pyhttps://github.com/python/cpython/pull/29316/commits/bd30c46ee6784975a8c3fce271218945e143c2de
bd30c46https://github.com/python/cpython/pull/29316/commits/bd30c46ee6784975a8c3fce271218945e143c2de
https://github.com/AlexWaygood
Further simplify diffhttps://github.com/python/cpython/pull/29316/commits/782f3c7f337e9fc6a53d7254d60643a0028ea20d
782f3c7https://github.com/python/cpython/pull/29316/commits/782f3c7f337e9fc6a53d7254d60643a0028ea20d
https://github.com/AlexWaygood
Merge branch 'Enum-dir-improvements' ofhttps://github.com/python/cpython/pull/29316/commits/24e89684e6aa52d72eafc80bb7737f5c8b1e75e2
https://github.com/AlexWaygoo…https://github.com/AlexWaygood/cpython
24e8968https://github.com/python/cpython/pull/29316/commits/24e89684e6aa52d72eafc80bb7737f5c8b1e75e2
…d/cpythonhttps://github.com/AlexWaygood/cpython
https://github.com/AlexWaygood
Lookup via __dict__ for non-EnumType classeshttps://github.com/python/cpython/pull/29316/commits/6dc0ec057418e7286a9d51cb239c9fabbdc2df35
6dc0ec0https://github.com/python/cpython/pull/29316/commits/6dc0ec057418e7286a9d51cb239c9fabbdc2df35
https://github.com/AlexWaygood
Small tweakshttps://github.com/python/cpython/pull/29316/commits/f5f80ad908a8ab893d984a6dc656ee401e77cdf3
f5f80adhttps://github.com/python/cpython/pull/29316/commits/f5f80ad908a8ab893d984a6dc656ee401e77cdf3
https://github.com/AlexWaygood
More tweakshttps://github.com/python/cpython/pull/29316/commits/6d182a09fa6c3e3fbbdc1930b9684d0c3d6af024
6d182a0https://github.com/python/cpython/pull/29316/commits/6d182a09fa6c3e3fbbdc1930b9684d0c3d6af024
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
Oct 30, 2021 https://github.com/python/cpython/pull/29316#pullrequestreview-793630459
View reviewed changes https://github.com/python/cpython/pull/29316/files/6d182a09fa6c3e3fbbdc1930b9684d0c3d6af024
Doc/howto/enum.rsthttps://github.com/python/cpython/pull/29316/files/6d182a09fa6c3e3fbbdc1930b9684d0c3d6af024#diff-007214cd4321f2b3600c085a1b9abe8c6f05662421ff232fb42ee77dafc85920
ethanfurmanhttps://github.com/ethanfurman
Oct 30, 2021https://github.com/python/cpython/pull/29316#discussion_r739718351
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29316
ethanfurmanhttps://github.com/ethanfurman
Oct 30, 2021https://github.com/python/cpython/pull/29316#discussion_r739718393
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29316
AlexWaygoodhttps://github.com/AlexWaygood
Oct 30, 2021https://github.com/python/cpython/pull/29316#discussion_r739723454
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29316
Lib/test/test_enum.pyhttps://github.com/python/cpython/pull/29316/files/6d182a09fa6c3e3fbbdc1930b9684d0c3d6af024#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c
ethanfurmanhttps://github.com/ethanfurman
Oct 30, 2021https://github.com/python/cpython/pull/29316#discussion_r739719010
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29316
AlexWaygoodhttps://github.com/AlexWaygood
Oct 31, 2021https://github.com/python/cpython/pull/29316#discussion_r739735772
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29316
AlexWaygoodhttps://github.com/AlexWaygood
October 31, 2021 17:55https://github.com/python/cpython/pull/29316#commits-pushed-6b22112
https://github.com/AlexWaygood
Improve tests w.r.t. classmethodshttps://github.com/python/cpython/pull/29316/commits/6b22112609db48a9440df418642cf18c69e7c580
6b22112https://github.com/python/cpython/pull/29316/commits/6b22112609db48a9440df418642cf18c69e7c580
https://github.com/AlexWaygood
More test tweakshttps://github.com/python/cpython/pull/29316/commits/baa84775938fe5507d10468f8ecfdb6d5f3e5bcb
baa8477https://github.com/python/cpython/pull/29316/commits/baa84775938fe5507d10468f8ecfdb6d5f3e5bcb
https://github.com/AlexWaygood
Another small tweakhttps://github.com/python/cpython/pull/29316/commits/f307b22b9647f8182984b450a8729c01d5c28052
f307b22https://github.com/python/cpython/pull/29316/commits/f307b22b9647f8182984b450a8729c01d5c28052
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Dec 2, 2021https://github.com/python/cpython/pull/29316#issuecomment-984169591
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Dec 2, 2021https://github.com/python/cpython/pull/29316#event-5702500169
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
Dec 2, 2021https://github.com/python/cpython/pull/29316#issuecomment-984175452
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/AlexWaygood
Only use a single sentinelhttps://github.com/python/cpython/pull/29316/commits/ce022300c648276286f7d786a9c5352829a95587
ce02230https://github.com/python/cpython/pull/29316/commits/ce022300c648276286f7d786a9c5352829a95587
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
Dec 2, 2021https://github.com/python/cpython/pull/29316#issuecomment-984798968
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Dec 2, 2021https://github.com/python/cpython/pull/29316#issuecomment-984804281
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
Dec 2, 2021https://github.com/python/cpython/pull/29316#issuecomment-984806929
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
b2afdc9https://github.com/python/cpython/commit/b2afdc95cc8f4e9228148730949a43cef0323f15
Dec 2, 2021https://github.com/python/cpython/pull/29316#event-5707192614
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Dec 2, 2021https://github.com/python/cpython/pull/29316#event-5707193236
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Dec 2, 2021https://github.com/python/cpython/pull/29316#issuecomment-984808295
Please reload this pagehttps://github.com/python/cpython/pull/29316
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
December 2, 2021 16:50https://github.com/python/cpython/pull/29316#event-5707195938
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Dec 2, 2021https://github.com/python/cpython/pull/29316#issuecomment-984830349
Please reload this pagehttps://github.com/python/cpython/pull/29316
b2afdc9https://github.com/python/cpython/commit/b2afdc95cc8f4e9228148730949a43cef0323f15
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/all/#builders/730/builds/361https://buildbot.python.org/all/#builders/730/builds/361
b2afdc9https://github.com/python/cpython/commit/b2afdc95cc8f4e9228148730949a43cef0323f15
https://buildbot.python.org/all/#builders/730/builds/361https://buildbot.python.org/all/#builders/730/builds/361
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
Dec 2, 2021https://github.com/python/cpython/pull/29316#issuecomment-984855649
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Apr 10, 2022 https://github.com/python/cpython/pull/29316#ref-issue-1199067483
Enum's dir() does not contain inherited members #89698 https://github.com/python/cpython/issues/89698
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29316
https://github.com/ethanfurman
ethanfurman https://github.com/ethanfurman
https://github.com/python/cpython/pull/29316/files/6d182a09fa6c3e3fbbdc1930b9684d0c3d6af024
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Please reload this pagehttps://github.com/python/cpython/pull/29316
https://github.com/AlexWaygood
https://github.com/ethanfurman
https://github.com/bedevere-bot
https://github.com/the-knights-who-say-ni
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.