-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-38250: [Enum] single-bit flags are canonical #24215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ethanfurman
merged 30 commits into
python:master
from
ethanfurman:enum-single_bit_flags
Jan 25, 2021
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
5f522d3
[Enum] fix Flag iteration, repr(), and str()
ethanfurman f7f9e72
add boundary KEEP for Flags (default for _convert_)
ethanfurman d289ba3
update re.RegexFlag for new Flag implementation
ethanfurman 72dbdd7
remove extra white space
ethanfurman 210fae7
test that zero-valued members are empty
ethanfurman 48bcd07
update tests to confirm CONFORM with negate
ethanfurman 1fd7471
update aenum.rst; add doctest to test_enum
ethanfurman aa425e6
fix doc test
ethanfurman 4786942
optimizations
ethanfurman 45565b2
formatting
ethanfurman 806c8c6
add news entry
ethanfurman 668c9a9
fix formatting of news entry
ethanfurman 9bd9e97
update iteration method and order
ethanfurman 18bcbac
add John Belmonte
ethanfurman f1c4584
more bit-fiddling improvements
ethanfurman e3713aa
use pop() instead of "del"
ethanfurman c4ec211
update DynamicClassAttribute __doc__
ethanfurman 00b2bfe
remove formatting changes
ethanfurman 9f432c3
remove extra parens
ethanfurman 15c060a
remove formatting changes
ethanfurman 86d7669
remove formatting
ethanfurman 55915df
simplify determination of member iteration
ethanfurman 95bf9c8
add note about next auto() value for Enum and Flag
ethanfurman 41ac1ce
local name optimizations
ethanfurman 3ea814e
remove commented-out code
ethanfurman 4983558
add test for next auto() and _order_
ethanfurman 651da18
raise TypeError if _value_ not added in custom new
ethanfurman 6e99d48
enable doc tests, update formatting
ethanfurman b52c5a2
fix note
ethanfurman 8d7b272
Update 2021-01-14-15-07-16.bpo-38250.1fvhOk.rst
ethanfurman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add boundary KEEP for Flags (default for _convert_)
some flag sets, such as ``ssl.Options`` are incomplete/inconsistent; using KEEP allows those flags to exist, and have useful repr()s, etc. also, add ``_inverted_`` attribute to Flag members to significantly speed up that operation.
- Loading branch information
commit f7f9e728e123dcaecccda0a96d4cdff6cce5bd01
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.