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 makes it easier for IDEs to provide auto-completion. Apologies for the big diff on the tests. https://bugs.python.org/issue45535

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f248fd74-bd9e-2fd4-f3a7-7173e475dde8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA99E:2C2C4D:1019AC0:163FC88:696A9431
html-safe-nonced1d501cca8e2bbb348cfc1080c478d305ddff559ce974dc4eec67f3f7036dd70
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTlFOjJDMkM0RDoxMDE5QUMwOjE2M0ZDODg6Njk2QTk0MzEiLCJ2aXNpdG9yX2lkIjoiNDE1MjU0NzE3ODY2NTY0NTEwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac96359bbd3096fedf9927ab54bb12d25b62df4671d8e238b35311f3075c3ae6ab
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/29316/files
twitter:imagehttps://avatars.githubusercontent.com/u/66076021?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/66076021?s=400&v=4
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:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release31496a13b80a2f6ad77d6c617ee2255a3545b539
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/29316/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29316%2Ffiles
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%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/29316/files
Reloadhttps://github.com/python/cpython/pull/29316/files
Reloadhttps://github.com/python/cpython/pull/29316/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/29316/files
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/files
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
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/files
bpo-45535: Improve output of Enum dir() https://github.com/python/cpython/pull/29316/files#top
Show all changes 13 commits https://github.com/python/cpython/pull/29316/files
0ed36bc bpo-45535: Improve output of Enum ``dir()`` AlexWaygood Oct 29, 2021 https://github.com/python/cpython/pull/29316/commits/0ed36bc3068f9772f5ba1534ab6863ef3df10990
bb4c147 Simplify Enum.__dir__ slightly AlexWaygood Oct 29, 2021 https://github.com/python/cpython/pull/29316/commits/bb4c147962ff573b2daa77b3aa8aba25baaa7f03
526d88b Simplify diff from upstream a little AlexWaygood Oct 29, 2021 https://github.com/python/cpython/pull/29316/commits/526d88b1264a516ae20a4fe7b0f0231289dd5e3c
bd30c46 Update enum.py AlexWaygood Oct 29, 2021 https://github.com/python/cpython/pull/29316/commits/bd30c46ee6784975a8c3fce271218945e143c2de
782f3c7 Further simplify diff AlexWaygood Oct 29, 2021 https://github.com/python/cpython/pull/29316/commits/782f3c7f337e9fc6a53d7254d60643a0028ea20d
24e8968 Merge branch 'Enum-dir-improvements' of https://github.com/AlexWaygoo… AlexWaygood Oct 29, 2021 https://github.com/python/cpython/pull/29316/commits/24e89684e6aa52d72eafc80bb7737f5c8b1e75e2
6dc0ec0 Lookup via __dict__ for non-EnumType classes AlexWaygood Oct 30, 2021 https://github.com/python/cpython/pull/29316/commits/6dc0ec057418e7286a9d51cb239c9fabbdc2df35
f5f80ad Small tweaks AlexWaygood Oct 30, 2021 https://github.com/python/cpython/pull/29316/commits/f5f80ad908a8ab893d984a6dc656ee401e77cdf3
6d182a0 More tweaks AlexWaygood Oct 30, 2021 https://github.com/python/cpython/pull/29316/commits/6d182a09fa6c3e3fbbdc1930b9684d0c3d6af024
6b22112 Improve tests w.r.t. classmethods AlexWaygood Oct 31, 2021 https://github.com/python/cpython/pull/29316/commits/6b22112609db48a9440df418642cf18c69e7c580
baa8477 More test tweaks AlexWaygood Oct 31, 2021 https://github.com/python/cpython/pull/29316/commits/baa84775938fe5507d10468f8ecfdb6d5f3e5bcb
f307b22 Another small tweak AlexWaygood Nov 2, 2021 https://github.com/python/cpython/pull/29316/commits/f307b22b9647f8182984b450a8729c01d5c28052
ce02230 Only use a single sentinel AlexWaygood Dec 2, 2021 https://github.com/python/cpython/pull/29316/commits/ce022300c648276286f7d786a9c5352829a95587
Clear filters https://github.com/python/cpython/pull/29316/files
Please reload this pagehttps://github.com/python/cpython/pull/29316/files
Please reload this pagehttps://github.com/python/cpython/pull/29316/files
enum.rst https://github.com/python/cpython/pull/29316/files#diff-007214cd4321f2b3600c085a1b9abe8c6f05662421ff232fb42ee77dafc85920
enum.rst https://github.com/python/cpython/pull/29316/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d
enum.py https://github.com/python/cpython/pull/29316/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03
test_enum.py https://github.com/python/cpython/pull/29316/files#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c
2021-10-29-16-28-06.bpo-45535.n8NiOE.rst https://github.com/python/cpython/pull/29316/files#diff-1522d3b69d81cf1e87098fe5f7b1b8b3fb33d7a3815c9eb280944c38a17d908c
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L451
Doc/howto/enum.rsthttps://github.com/python/cpython/pull/29316/files#diff-007214cd4321f2b3600c085a1b9abe8c6f05662421ff232fb42ee77dafc85920
View file https://github.com/AlexWaygood/cpython/blob/ce022300c648276286f7d786a9c5352829a95587/Doc/howto/enum.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29316/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29316/files#diff-007214cd4321f2b3600c085a1b9abe8c6f05662421ff232fb42ee77dafc85920
ethanfurmanhttps://github.com/ethanfurman
Oct 30, 2021https://github.com/python/cpython/pull/29316/files#r739718351
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29316/files
ethanfurmanhttps://github.com/ethanfurman
Oct 30, 2021https://github.com/python/cpython/pull/29316/files#r739718393
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29316/files
AlexWaygoodhttps://github.com/AlexWaygood
Oct 30, 2021https://github.com/python/cpython/pull/29316/files#r739723454
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29316/files
https://github.com/python/cpython/pull/29316/files#diff-007214cd4321f2b3600c085a1b9abe8c6f05662421ff232fb42ee77dafc85920
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L452
Doc/library/enum.rsthttps://github.com/python/cpython/pull/29316/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d
View file https://github.com/AlexWaygood/cpython/blob/ce022300c648276286f7d786a9c5352829a95587/Doc/library/enum.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29316/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29316/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d
https://github.com/python/cpython/pull/29316/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d
https://github.com/python/cpython/pull/29316/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d
https://github.com/python/cpython/pull/29316/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L453
Lib/enum.pyhttps://github.com/python/cpython/pull/29316/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03
View file https://github.com/AlexWaygood/cpython/blob/ce022300c648276286f7d786a9c5352829a95587/Lib/enum.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29316/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29316/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03
https://github.com/python/cpython/pull/29316/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03
https://github.com/python/cpython/pull/29316/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03
https://github.com/python/cpython/pull/29316/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03
Please reload this pagehttps://github.com/python/cpython/pull/29316/files
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.