René's URL Explorer Experiment


Title: gh-139398: Add supported sunder names to Enum `__dir__` for REPL completions by RafaelWO · Pull Request #139985 · python/cpython · GitHub

Open Graph Title: gh-139398: Add supported sunder names to Enum `__dir__` for REPL completions by RafaelWO · Pull Request #139985 · python/cpython

X Title: gh-139398: Add supported sunder names to Enum `__dir__` for REPL completions by RafaelWO · Pull Request #139985 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This change adds the sunder names _generate_next_value_ and _missing_ to the __dir__ method of EnumType and Enum. In Addition, The instance level sunder names _add_alias_ and _add_value_alias_ are ...

X Description: This change adds the sunder names _generate_next_value_ and _missing_ to the __dir__ method of EnumType and Enum. In Addition, The instance level sunder names _add_alias_ and _add_value_alias_ are ...

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

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:02161a6e-4f44-080c-473c-c02d69462bb8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8A30:288515:306AD44:414421E:6A53C893
html-safe-nonce8959fb442a75055db98651c0ff4a6b8bc8a75f0ee850ae66d328b499a3f0e475
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTMwOjI4ODUxNTozMDZBRDQ0OjQxNDQyMUU6NkE1M0M4OTMiLCJ2aXNpdG9yX2lkIjoiNTg0NDIzNzUxOTg2MTA0MTI5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac085e1f65efbca27e1fd61c9303a158580f62d315079f795c6a3d9c2166aa63c1
hovercard-subject-tagpull_request:2907323944
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/139985/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/da1c7e8a2ae1f60c33bbe115e088ee080908c3ca00aba831cb6058ec9116937d/python/cpython/pull/139985
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/da1c7e8a2ae1f60c33bbe115e088ee080908c3ca00aba831cb6058ec9116937d/python/cpython/pull/139985
og:image:altThis change adds the sunder names _generate_next_value_ and _missing_ to the __dir__ method of EnumType and Enum. In Addition, The instance level sunder names _add_alias_ and _add_value_alias_ are ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRafaelWO
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/139985#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139985
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F139985
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/139985
Reloadhttps://github.com/python/cpython/pull/139985
Reloadhttps://github.com/python/cpython/pull/139985
Please reload this pagehttps://github.com/python/cpython/pull/139985
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/139985
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
ethanfurmanhttps://github.com/ethanfurman
python:mainhttps://github.com/python/cpython/tree/main
RafaelWO:fix/enum-dirhttps://github.com/RafaelWO/cpython/tree/fix/enum-dir
Conversationhttps://github.com/python/cpython/pull/139985
Commits7 (7)https://github.com/python/cpython/pull/139985/commits
Checkshttps://github.com/python/cpython/pull/139985/checks
Files changedhttps://github.com/python/cpython/pull/139985/files
gh-139398: Add supported sunder names to Enum __dir__ for REPL completionshttps://github.com/python/cpython/pull/139985#top
ethanfurmanhttps://github.com/ethanfurman
python:mainhttps://github.com/python/cpython/tree/main
RafaelWO:fix/enum-dirhttps://github.com/RafaelWO/cpython/tree/fix/enum-dir
https://github.com/RafaelWO
RafaelWOhttps://github.com/RafaelWO
Oct 12, 2025https://github.com/python/cpython/pull/139985#issue-3506749587
Please reload this pagehttps://github.com/python/cpython/pull/139985
#139418https://github.com/python/cpython/pull/139418
REPL does not show completions for some members of the Enum module #139398https://github.com/python/cpython/issues/139398
https://cpython-previews--139985.org.readthedocs.build/https://cpython-previews--139985.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/139985
https://github.com/RafaelWO
RafaelWOhttps://github.com/RafaelWO
ethanfurmanhttps://github.com/ethanfurman
code ownerhttps://github.com/python/cpython/blob/d6dd64ac654898b4ce713c16c49eadb0c6e9d7dc/.github/CODEOWNERS#L446
October 12, 2025 06:54https://github.com/python/cpython/pull/139985#event-20228857345
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 12, 2025https://github.com/python/cpython/pull/139985#event-20228857609
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 12, 2025 https://github.com/python/cpython/pull/139985#ref-issue-3462194207
REPL does not show completions for some members of the Enum module #139398 https://github.com/python/cpython/issues/139398
https://github.com/RafaelWO
RafaelWOhttps://github.com/RafaelWO
Oct 12, 2025 https://github.com/python/cpython/pull/139985#pullrequestreview-3327932817
View reviewed changes https://github.com/python/cpython/pull/139985/files
Lib/test/test_enum.pyhttps://github.com/python/cpython/pull/139985/files#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c
Please reload this pagehttps://github.com/python/cpython/pull/139985
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 12, 2025 https://github.com/python/cpython/pull/139985#pullrequestreview-3327939525
View reviewed changes https://github.com/python/cpython/pull/139985/files
Misc/NEWS.d/next/Library/2025-10-12-08-46-26.gh-issue-139398.hESOMl.rsthttps://github.com/python/cpython/pull/139985/files#diff-06b11e76e570bf002667de080e052ffb471cb5fb171a342a39b1e535819615b5
Please reload this pagehttps://github.com/python/cpython/pull/139985
RafaelWOhttps://github.com/RafaelWO
October 12, 2025 09:41https://github.com/python/cpython/pull/139985#commits-pushed-27ac856
https://github.com/RafaelWO
https://github.com/SimonGPrs
Add supported sunder names to Enum __dir__https://github.com/python/cpython/pull/139985/commits/27ac85647702e075bd670f247016a9fcd8723702
27ac856https://github.com/python/cpython/pull/139985/commits/27ac85647702e075bd670f247016a9fcd8723702
https://github.com/RafaelWO
Improve printed output of test for Enum attributeshttps://github.com/python/cpython/pull/139985/commits/0d9fedf0f8adccd72a4e268c183c939f9630ab46
0d9fedfhttps://github.com/python/cpython/pull/139985/commits/0d9fedf0f8adccd72a4e268c183c939f9630ab46
https://github.com/RafaelWO
RafaelWOhttps://github.com/RafaelWO
force-pushedhttps://github.com/python/cpython/compare/bafd9e3c804aa5708353ecc5035a9237232babdd..0d9fedf0f8adccd72a4e268c183c939f9630ab46
bafd9e3https://github.com/python/cpython/commit/bafd9e3c804aa5708353ecc5035a9237232babdd
0d9fedfhttps://github.com/python/cpython/commit/0d9fedf0f8adccd72a4e268c183c939f9630ab46
Compare https://github.com/python/cpython/compare/bafd9e3c804aa5708353ecc5035a9237232babdd..0d9fedf0f8adccd72a4e268c183c939f9630ab46
October 12, 2025 07:41https://github.com/python/cpython/pull/139985#event-20229001318
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 12, 2025https://github.com/python/cpython/pull/139985#issuecomment-3394054319
Please reload this pagehttps://github.com/python/cpython/pull/139985
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 12, 2025 https://github.com/python/cpython/pull/139985#pullrequestreview-3327970146
View reviewed changes https://github.com/python/cpython/pull/139985/files/0d9fedf0f8adccd72a4e268c183c939f9630ab46
Misc/NEWS.d/next/Library/2025-10-12-08-46-26.gh-issue-139398.hESOMl.rsthttps://github.com/python/cpython/pull/139985/files/0d9fedf0f8adccd72a4e268c183c939f9630ab46#diff-06b11e76e570bf002667de080e052ffb471cb5fb171a342a39b1e535819615b5
Please reload this pagehttps://github.com/python/cpython/pull/139985
https://github.com/RafaelWO
Fix case of enum directive in news entryhttps://github.com/python/cpython/pull/139985/commits/1354d4639cd229682f54fd2695c3cd6c58619e81
1354d46https://github.com/python/cpython/pull/139985/commits/1354d4639cd229682f54fd2695c3cd6c58619e81
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Apr 30, 2026https://github.com/python/cpython/pull/139985#issuecomment-4355182259
Please reload this pagehttps://github.com/python/cpython/pull/139985
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
Apr 30, 2026https://github.com/python/cpython/pull/139985#event-25047457421
https://github.com/RafaelWO
Fix unit test regarding Enum class attributeshttps://github.com/python/cpython/pull/139985/commits/f30c11b0e9d87842c4a98013340b8db913028358
f30c11bhttps://github.com/python/cpython/pull/139985/commits/f30c11b0e9d87842c4a98013340b8db913028358
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
May 25, 2026https://github.com/python/cpython/pull/139985#issuecomment-4533011808
Please reload this pagehttps://github.com/python/cpython/pull/139985
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#32890968https://app.readthedocs.org/projects/cpython-previews/builds/32890968/
4d961dehttps://github.com/python/cpython/commit/4d961de79f1eb7363c2fca80cc25c1b7cd010481
mainhttps://cpython-previews.readthedocs.io/en/main/
fbeafc0https://github.com/python/cpython/commit/fbeafc062e55a52ba7369c36be0b3eb34eabb560
  🔍 Preview build   https://cpython-previews--139985.org.readthedocs.build/en/139985/
glossary.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/glossary.html
c-api/threads.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/c-api/threads.html
library/ctypes.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/library/ctypes.html
library/enum.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/library/enum.html
library/lzma.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/library/lzma.html
library/pyexpat.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/library/pyexpat.html
library/traceback.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/library/traceback.html
reference/compound_stmts.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/reference/compound_stmts.html
reference/expressions.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/reference/expressions.html
using/configure.htmlhttps://cpython-previews--139985.org.readthedocs.build/en/139985/using/configure.html
Please reload this pagehttps://github.com/python/cpython/pull/139985
https://github.com/RafaelWO
RafaelWOhttps://github.com/RafaelWO
May 25, 2026https://github.com/python/cpython/pull/139985#issuecomment-4533410004
Please reload this pagehttps://github.com/python/cpython/pull/139985
ethanfurmanhttps://github.com/ethanfurman
May 26, 2026 11:35https://github.com/python/cpython/pull/139985#commits-pushed-7ea0b4b
https://github.com/ethanfurman
Merge branch 'main' into fix/enum-dirhttps://github.com/python/cpython/pull/139985/commits/7ea0b4bf78a2b7f69fcff9796753436f565c08ae
7ea0b4bhttps://github.com/python/cpython/pull/139985/commits/7ea0b4bf78a2b7f69fcff9796753436f565c08ae
https://github.com/ethanfurman
Merge branch 'main' into fix/enum-dirhttps://github.com/python/cpython/pull/139985/commits/b8f8b08f18e993ab6b7623ce66e7a22cfea08784
b8f8b08https://github.com/python/cpython/pull/139985/commits/b8f8b08f18e993ab6b7623ce66e7a22cfea08784
https://github.com/RafaelWO
RafaelWOhttps://github.com/RafaelWO
May 27, 2026https://github.com/python/cpython/pull/139985#issuecomment-4556585816
@ethanfurmanhttps://github.com/ethanfurman
Please reload this pagehttps://github.com/python/cpython/pull/139985
https://github.com/ethanfurman
Merge branch 'main' into fix/enum-dirhttps://github.com/python/cpython/pull/139985/commits/4d961de79f1eb7363c2fca80cc25c1b7cd010481
4d961dehttps://github.com/python/cpython/pull/139985/commits/4d961de79f1eb7363c2fca80cc25c1b7cd010481
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
May 28, 2026 https://github.com/python/cpython/pull/139985#pullrequestreview-4384253326
View reviewed changes https://github.com/python/cpython/pull/139985/files/4d961de79f1eb7363c2fca80cc25c1b7cd010481
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 28, 2026https://github.com/python/cpython/pull/139985#event-26079976940
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
baf11a4https://github.com/python/cpython/commit/baf11a4e9a9d6542a1f3a891c670da36c89cbc96
May 28, 2026https://github.com/python/cpython/pull/139985#event-26080046476
Please reload this pagehttps://github.com/python/cpython/pull/139985
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
May 28, 2026https://github.com/python/cpython/pull/139985#event-26080048763
https://github.com/RafaelWO
RafaelWOhttps://github.com/RafaelWO
June 20, 2026 10:06https://github.com/python/cpython/pull/139985#event-26984417419
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F139985
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/139985/files/0d9fedf0f8adccd72a4e268c183c939f9630ab46
https://github.com/ethanfurman
ethanfurman https://github.com/ethanfurman
https://github.com/python/cpython/pull/139985/files/4d961de79f1eb7363c2fca80cc25c1b7cd010481
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Please reload this pagehttps://github.com/python/cpython/pull/139985
https://github.com/RafaelWO
https://github.com/StanFromIreland
https://github.com/ethanfurman
https://github.com/nazeerali4325-commits
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.