| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f248fd74-bd9e-2fd4-f3a7-7173e475dde8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A99E:2C2C4D:1019AC0:163FC88:696A9431 |
| html-safe-nonce | d1d501cca8e2bbb348cfc1080c478d305ddff559ce974dc4eec67f3f7036dd70 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTlFOjJDMkM0RDoxMDE5QUMwOjE2M0ZDODg6Njk2QTk0MzEiLCJ2aXNpdG9yX2lkIjoiNDE1MjU0NzE3ODY2NTY0NTEwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 96359bbd3096fedf9927ab54bb12d25b62df4671d8e238b35311f3075c3ae6ab |
| hovercard-subject-tag | pull_request:769348432 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/29316/files |
| twitter:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/python/cpython/pull/29316/files |
| Reload | https://github.com/python/cpython/pull/29316/files |
| Reload | https://github.com/python/cpython/pull/29316/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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 page | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| ethanfurman | https://github.com/ethanfurman |
| python:main | https://github.com/python/cpython/tree/main |
| AlexWaygood:Enum-dir-improvements | https://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 page | https://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 page | https://github.com/python/cpython/pull/29316/files |
| Please reload this page | https://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.rst | https://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 |
| ethanfurman | https://github.com/ethanfurman |
| Oct 30, 2021 | https://github.com/python/cpython/pull/29316/files#r739718351 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/29316/files |
| ethanfurman | https://github.com/ethanfurman |
| Oct 30, 2021 | https://github.com/python/cpython/pull/29316/files#r739718393 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/29316/files |
| AlexWaygood | https://github.com/AlexWaygood |
| Oct 30, 2021 | https://github.com/python/cpython/pull/29316/files#r739723454 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://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.rst | https://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.py | https://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 page | https://github.com/python/cpython/pull/29316/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |