| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2ce7dc57-d024-02e9-710c-2ff5f7689d14 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BE88:19FB97:17D7D9:21B3D3:696A0EC6 |
| html-safe-nonce | 29d525feaa1ab11e8148d9fda4f09de2092b18274ecdd9f0bc42c2ba25a76c55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTg4OjE5RkI5NzoxN0Q3RDk6MjFCM0QzOjY5NkEwRUM2IiwidmlzaXRvcl9pZCI6IjU1OTM3MTg5ODgwNzI0MjMxMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c220ed7b7523444a92d348365742329c15c1ccf11ccbe16ecbe957964cc0a2a |
| hovercard-subject-tag | pull_request:605850871 |
| 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/25116/files |
| twitter:image | https://avatars.githubusercontent.com/u/7659890?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7659890?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue40066 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/25116/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F25116%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%2F25116%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/25116/files |
| Reload | https://github.com/python/cpython/pull/25116/files |
| Reload | https://github.com/python/cpython/pull/25116/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/25116/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/25116/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:master | https://github.com/python/cpython/tree/master |
| ethanfurman:enum-global_repr-doctest | https://github.com/ethanfurman/cpython/tree/enum-global_repr-doctest |
|
Conversation
0
| https://github.com/python/cpython/pull/25116 |
|
Commits
21
| https://github.com/python/cpython/pull/25116/commits |
|
Checks
0
| https://github.com/python/cpython/pull/25116/checks |
|
Files changed
| https://github.com/python/cpython/pull/25116/files |
| Please reload this page | https://github.com/python/cpython/pull/25116/files |
|
bpo-40066: Enum global repr doctest
| https://github.com/python/cpython/pull/25116/files#top |
|
Show all changes
21 commits
| https://github.com/python/cpython/pull/25116/files |
|
aa436ed
add new repr and str for converted Int-Enums/Flags
ethanfurman Sep 18, 2020
| https://github.com/python/cpython/pull/25116/commits/aa436ed704bef030372b1307f4664af6fd719c8b |
|
db0386f
wip
ethanfurman Sep 24, 2020
| https://github.com/python/cpython/pull/25116/commits/db0386fbccc6974a1c3b1df7a442eac1fe6360a7 |
|
33cfa20
make Enum.__str__ print name or value
ethanfurman Sep 24, 2020
| https://github.com/python/cpython/pull/25116/commits/33cfa208e3b2ddf8d10f7433769e27dede90f5a4 |
|
bdffc7d
add news entry
ethanfurman Sep 24, 2020
| https://github.com/python/cpython/pull/25116/commits/bdffc7dac2769e928bf5c4de1cdff4b6f57a4ad9 |
|
1bd8a6a
fix tests that checked Enum str()
ethanfurman Sep 24, 2020
| https://github.com/python/cpython/pull/25116/commits/1bd8a6a60008b1620e2c2afdeb3f28a7dae1c830 |
|
dfe01a1
wip
ethanfurman Sep 24, 2020
| https://github.com/python/cpython/pull/25116/commits/dfe01a12141cab3a8e8955278d837e3820c033c7 |
|
2a5ace6
fix format for global string override
ethanfurman Sep 24, 2020
| https://github.com/python/cpython/pull/25116/commits/2a5ace6843b1d61aabbdf09ddf27a7e91807b03f |
|
722474d
update docs with new stdlib enum reprs and strs
ethanfurman Sep 24, 2020
| https://github.com/python/cpython/pull/25116/commits/722474d0066f326b74604683da257c02422cac03 |
|
49a46d0
plain Enum has updated str() and repr()
ethanfurman Sep 25, 2020
| https://github.com/python/cpython/pull/25116/commits/49a46d0d95d11bb8dc03255d2019fed632ca82a2 |
|
e01379c
_stdlib_enum -> global_enum
ethanfurman Sep 25, 2020
| https://github.com/python/cpython/pull/25116/commits/e01379cef9da6612c6417644e24a026d58979861 |
|
893c636
fix pydoc and unicode tests
ethanfurman Sep 25, 2020
| https://github.com/python/cpython/pull/25116/commits/893c636560d6234d10a05f076316f11d965a8b72 |
|
6ffaf77
fix white space
ethanfurman Sep 25, 2020
| https://github.com/python/cpython/pull/25116/commits/6ffaf771c01fe2cbc3ca47425b3d210ca3e4b666 |
|
9f0ab8b
fix signal tests
ethanfurman Sep 25, 2020
| https://github.com/python/cpython/pull/25116/commits/9f0ab8b786dc1f22a055429c8e071e192ec6d27e |
|
d782de0
update NEWS entry
ethanfurman Sep 25, 2020
| https://github.com/python/cpython/pull/25116/commits/d782de0e5c79c8736e549bcdbf1cfb61249b2fdd |
|
1013cea
use `.__dict__` instead of `vars()`
ethanfurman Sep 29, 2020
| https://github.com/python/cpython/pull/25116/commits/1013ceacfc1396aa74f428add61d72d6f7b8f51c |
|
896b608
wip
ethanfurman Mar 13, 2021
| https://github.com/python/cpython/pull/25116/commits/896b608cee7ed3fcc5036db3cb1b4585ae73d0cf |
|
4f43964
minor updates
ethanfurman Mar 25, 2021
| https://github.com/python/cpython/pull/25116/commits/4f43964fedace60814dcc434d8f1be7088ac3d55 |
|
40910ea
rewrite enum docs; add enum how-to
ethanfurman Mar 25, 2021
| https://github.com/python/cpython/pull/25116/commits/40910ea5d039f05254b8b7af6baf851c82e11361 |
|
7643863
Enum: streamline repr() and str(); improve docs
ethanfurman Mar 26, 2021
| https://github.com/python/cpython/pull/25116/commits/76438635286e3a50b87319c65014249d243c7e10 |
|
2b3a5cc
add ``whatsnew`` entry
ethanfurman Mar 26, 2021
| https://github.com/python/cpython/pull/25116/commits/2b3a5ccd8e866a3bc5395a1b7a473f5b9e6ac8c9 |
|
88b0da6
Enum: add superfluous reimport for doctest
ethanfurman Mar 31, 2021
| https://github.com/python/cpython/pull/25116/commits/88b0da6ce34ca55e07afe775ad46af8720cbc7e8 |
|
Clear filters
| https://github.com/python/cpython/pull/25116/files |
| Please reload this page | https://github.com/python/cpython/pull/25116/files |
| Please reload this page | https://github.com/python/cpython/pull/25116/files |
|
enum.rst
| https://github.com/python/cpython/pull/25116/files#diff-007214cd4321f2b3600c085a1b9abe8c6f05662421ff232fb42ee77dafc85920 |
|
index.rst
| https://github.com/python/cpython/pull/25116/files#diff-43b185ea926fb30b5ef5fd256f6a9e6d2f781468a8a1724bf7a4262563826d63 |
|
enum.rst
| https://github.com/python/cpython/pull/25116/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
http.rst
| https://github.com/python/cpython/pull/25116/files#diff-7b8ddb05aa75662657f99bf3fcd7778a8f3b37083edafe2c274d42edf6ea05f5 |
|
socket.rst
| https://github.com/python/cpython/pull/25116/files#diff-e9e93d6b76a8a1cf0825d557b12e7ce3e67081cad650063eee520b81fd651943 |
|
ssl.rst
| https://github.com/python/cpython/pull/25116/files#diff-df0c7115ade453321aadb2eb534941f2ec87c4b52563bae70421918dce5435dc |
|
3.10.rst
| https://github.com/python/cpython/pull/25116/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
enum.py
| https://github.com/python/cpython/pull/25116/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03 |
|
inspect.py
| https://github.com/python/cpython/pull/25116/files#diff-b89cd06e4637abacb73f2500301ff979a67ad7ecbfa7cf151c7243715898d7ea |
|
plistlib.py
| https://github.com/python/cpython/pull/25116/files#diff-54b4dbba1851f4da677aa12b528d553b094558645daf343b01abd0c1280ba011 |
|
re.py
| https://github.com/python/cpython/pull/25116/files#diff-b3acb629f8cea6310bc296c20238eee20737bf70057079b4ee4624a643c2775d |
|
test_enum.py
| https://github.com/python/cpython/pull/25116/files#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c |
|
test_pydoc.py
| https://github.com/python/cpython/pull/25116/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621 |
|
test_signal.py
| https://github.com/python/cpython/pull/25116/files#diff-d2af8fb561277f84d7a1c0274aca37955e9f515d0d73be58933abe191df1cca9 |
|
test_socket.py
| https://github.com/python/cpython/pull/25116/files#diff-ce79808e12f7a252c1747c23ba11810d4dc22ce0af4b9419bac647ad3a2a8389 |
|
test_ssl.py
| https://github.com/python/cpython/pull/25116/files#diff-d526ded1c360bed6b222de46f4ca92b834f978ebed992fb3189bf9a94a198578 |
|
test_unicode.py
| https://github.com/python/cpython/pull/25116/files#diff-5a2c8275f700073cdc5d4e1b818ec472bb0230210b9c99eac0bdc9e0a2949f41 |
|
2020-09-23-21-58-34.bpo-40066.f1dr_5.rst
| https://github.com/python/cpython/pull/25116/files#diff-bd02b437bd05a29c480636d05a4a2e64ed6d492a0d8e2918631b4871ad21c4ab |
|
2021-03-25-21-26-30.bpo-40066.7EBQ3_.rst
| https://github.com/python/cpython/pull/25116/files#diff-c9f42d716c62e183aa2e5c3be85426012462c2fd894c69441a68099524446a3d |
| Doc/howto/enum.rst | https://github.com/python/cpython/pull/25116/files#diff-007214cd4321f2b3600c085a1b9abe8c6f05662421ff232fb42ee77dafc85920 |
|
View file
| https://github.com/ethanfurman/cpython/blob/88b0da6ce34ca55e07afe775ad46af8720cbc7e8/Doc/howto/enum.rst |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/python/cpython/pull/25116/files |
| Doc/howto/index.rst | https://github.com/python/cpython/pull/25116/files#diff-43b185ea926fb30b5ef5fd256f6a9e6d2f781468a8a1724bf7a4262563826d63 |
|
View file
| https://github.com/ethanfurman/cpython/blob/88b0da6ce34ca55e07afe775ad46af8720cbc7e8/Doc/howto/index.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25116/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25116/files#diff-43b185ea926fb30b5ef5fd256f6a9e6d2f781468a8a1724bf7a4262563826d63 |
|
| https://github.com/python/cpython/pull/25116/files#diff-43b185ea926fb30b5ef5fd256f6a9e6d2f781468a8a1724bf7a4262563826d63 |
| Please reload this page | https://github.com/python/cpython/pull/25116/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 |