| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6d7761ee-7819-7424-33b4-c682c8ced2d0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 857E:16ACC6:98F5C:D9D07:6A50EBB2 |
| html-safe-nonce | 620922c3fc14b4e41e072542e0d9727ea8491ec144e4228279c2a65d74c65a68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTdFOjE2QUNDNjo5OEY1QzpEOUQwNzo2QTUwRUJCMiIsInZpc2l0b3JfaWQiOiI1OTgwNjgxOTgyMjQ1Mzk5NDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0ac5fd8b403b2df3883dc5848117b0639e8c4ff0764e99c88f5db7b2195f782d |
| hovercard-subject-tag | pull_request:554585401 |
| 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/24215/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 | Flag members are now divided by one-bit verses multi-bit, with multi-bit
being treated as aliases. Iterating over a flag only returns the
contained single-bit flags.
Iterating, repr(), and str() s... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| 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 | fb19d617b534959801b4b7453938ecf1dfa22131 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/24215/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F24215%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2F24215%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/24215/files |
| Reload | https://github.com/python/cpython/pull/24215/files |
| Reload | https://github.com/python/cpython/pull/24215/files |
| Please reload this page | https://github.com/python/cpython/pull/24215/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/24215/files |
|
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 |
| 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-single_bit_flags | https://github.com/ethanfurman/cpython/tree/enum-single_bit_flags |
|
Conversation
75
| https://github.com/python/cpython/pull/24215 |
|
Commits
30
| https://github.com/python/cpython/pull/24215/commits |
|
Checks
0
| https://github.com/python/cpython/pull/24215/checks |
|
Files changed
| https://github.com/python/cpython/pull/24215/files |
| Please reload this page | https://github.com/python/cpython/pull/24215/files |
|
bpo-38250: [Enum] single-bit flags are canonical
| https://github.com/python/cpython/pull/24215/files#top |
|
Show all changes
30 commits
| https://github.com/python/cpython/pull/24215/files |
|
5f522d3
[Enum] fix Flag iteration, repr(), and str()
ethanfurman Jan 13, 2021
| https://github.com/python/cpython/pull/24215/commits/5f522d38139dc6d9bd7781500f811016b683b66f |
|
f7f9e72
add boundary KEEP for Flags (default for _convert_)
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/f7f9e728e123dcaecccda0a96d4cdff6cce5bd01 |
|
d289ba3
update re.RegexFlag for new Flag implementation
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/d289ba3e0551ae7a7c8cdbec0e445764812a03e3 |
|
72dbdd7
remove extra white space
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/72dbdd70f88781c898cf7bac2af94584a94f169f |
|
210fae7
test that zero-valued members are empty
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/210fae7fbf4ba3d3ab3e1a356a3a9542321a3fb8 |
|
48bcd07
update tests to confirm CONFORM with negate
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/48bcd07c3738bc5db889068af8525f911aa39df7 |
|
1fd7471
update aenum.rst; add doctest to test_enum
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/1fd7471f351be3e477a52ded6a2303612cd0d06e |
|
aa425e6
fix doc test
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/aa425e6de2670e3a67b63e63c8ace521a0343f7b |
|
4786942
optimizations
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/4786942ead0a4c0d95093476861ee8dfa99470d0 |
|
45565b2
formatting
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/45565b248ec416a17c58715fdf126b87a6441c21 |
|
806c8c6
add news entry
ethanfurman Jan 14, 2021
| https://github.com/python/cpython/pull/24215/commits/806c8c62f14483a2e19e35e9b45b7e15005cce4f |
|
668c9a9
fix formatting of news entry
ethanfurman Jan 15, 2021
| https://github.com/python/cpython/pull/24215/commits/668c9a9d14e5c6495ea75abf762c9e3a6e5d0167 |
|
9bd9e97
update iteration method and order
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/9bd9e97469c5592d43973bf3e93ea9a39f5298e1 |
|
18bcbac
add John Belmonte
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/18bcbacaab7026eadf3550eb8fab9fa7439d3dc8 |
|
f1c4584
more bit-fiddling improvements
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/f1c45843b7e36f3dbfa2e0f323279c45c8cf2dbf |
|
e3713aa
use pop() instead of "del"
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/e3713aaceb7238d79496f3c21cc4051abe9d1c33 |
|
c4ec211
update DynamicClassAttribute __doc__
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/c4ec21165c88c7034bb019e06acbc332e8534250 |
|
00b2bfe
remove formatting changes
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/00b2bfe72474edac387108aef80b7b69b5efd40b |
|
9f432c3
remove extra parens
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/9f432c3358cc0db3e09be584c9a97aaa705ac878 |
|
15c060a
remove formatting changes
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/15c060a2245c201f87371617e067768c296cc7b9 |
|
86d7669
remove formatting
ethanfurman Jan 20, 2021
| https://github.com/python/cpython/pull/24215/commits/86d76698c1fcae2b6bc7ef876300710615995841 |
|
55915df
simplify determination of member iteration
ethanfurman Jan 22, 2021
| https://github.com/python/cpython/pull/24215/commits/55915df64a7c5e5e7051162de8bb14ec1570a678 |
|
95bf9c8
add note about next auto() value for Enum and Flag
ethanfurman Jan 25, 2021
| https://github.com/python/cpython/pull/24215/commits/95bf9c84aa79e4198e779290a96a1eba35dc2c68 |
|
41ac1ce
local name optimizations
ethanfurman Jan 25, 2021
| https://github.com/python/cpython/pull/24215/commits/41ac1cecf1677e86e582183c114185e0b3cee484 |
|
3ea814e
remove commented-out code
ethanfurman Jan 25, 2021
| https://github.com/python/cpython/pull/24215/commits/3ea814e21c2a8f2e0d010faaf4615ee67563246a |
|
4983558
add test for next auto() and _order_
ethanfurman Jan 25, 2021
| https://github.com/python/cpython/pull/24215/commits/4983558af7b1d14d12eeea038b2f63811bc4c354 |
|
651da18
raise TypeError if _value_ not added in custom new
ethanfurman Jan 25, 2021
| https://github.com/python/cpython/pull/24215/commits/651da184f1ae6ff5c067a658130473fb13e09422 |
|
6e99d48
enable doc tests, update formatting
ethanfurman Jan 25, 2021
| https://github.com/python/cpython/pull/24215/commits/6e99d485737c71bef77abb8979c607dc6f38024c |
|
b52c5a2
fix note
ethanfurman Jan 25, 2021
| https://github.com/python/cpython/pull/24215/commits/b52c5a2d8aef05914ead91e2f0404b54c6187f5b |
|
8d7b272
Update 2021-01-14-15-07-16.bpo-38250.1fvhOk.rst
ethanfurman Jan 25, 2021
| https://github.com/python/cpython/pull/24215/commits/8d7b2724fbec9eaa670dcfe3f7a942f31494cc5c |
|
Clear filters
| https://github.com/python/cpython/pull/24215/files |
| Please reload this page | https://github.com/python/cpython/pull/24215/files |
| Please reload this page | https://github.com/python/cpython/pull/24215/files |
|
enum.rst
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
enum.py
| https://github.com/python/cpython/pull/24215/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03 |
|
re.py
| https://github.com/python/cpython/pull/24215/files#diff-b3acb629f8cea6310bc296c20238eee20737bf70057079b4ee4624a643c2775d |
|
test_enum.py
| https://github.com/python/cpython/pull/24215/files#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c |
|
test_re.py
| https://github.com/python/cpython/pull/24215/files#diff-8e462ca5167ec7a83a5710c179ef56cbae19cd614303fbcf2ec33fd9db914e2a |
|
types.py
| https://github.com/python/cpython/pull/24215/files#diff-14c8ad728bd63143566c2c1e5a85a7b20cebc910278ac9202978e845dc63f215 |
|
ACKS
| https://github.com/python/cpython/pull/24215/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0 |
|
2021-01-14-15-07-16.bpo-38250.1fvhOk.rst
| https://github.com/python/cpython/pull/24215/files#diff-dae51d0807e8a1f72c323384f6a361c0e027804d48f4dc7ae7d8716ecbe0b9fb |
| Doc/library/enum.rst | https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
View file
| https://github.com/ethanfurman/cpython/blob/8d7b2724fbec9eaa670dcfe3f7a942f31494cc5c/Doc/library/enum.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/24215/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
|
| https://github.com/python/cpython/pull/24215/files#diff-4cebe6df5185cf2ebe9799ee15c1d84d0152462b1f79969d36e0e72abdc3335d |
| Please reload this page | https://github.com/python/cpython/pull/24215/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 |