8000 bpo-38250: [Enum] single-bit flags are canonical by ethanfurman · Pull Request #24215 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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
merged 30 commits into from
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 Jan 13, 2021
f7f9e72
add boundary KEEP for Flags (default for _convert_)
ethanfurman Jan 14, 2021
d289ba3
update re.RegexFlag for new Flag implementation
ethanfurman Jan 14, 2021
72dbdd7
remove extra white space
ethanfurman Jan 14, 2021
210fae7
test that zero-valued members are empty
ethanfurman Jan 14, 2021
48bcd07
update tests to confirm CONFORM with negate
ethanfurman Jan 14, 2021
1fd7471
update aenum.rst; add doctest to test_enum
ethanfurman Jan 14, 2021
aa425e6
fix doc test
ethanfurman Jan 14, 2021
4786942
optimizations
ethanfurman Jan 14, 2021
45565b2
formatting
ethanfurman Jan 14, 2021
806c8c6
add news entry
ethanfurman Jan 14, 2021
668c9a9
fix formatting of news entry
ethanfurman Jan 15, 2021
9bd9e97
update iteration method and order
ethanfurman Jan 20, 2021
18bcbac
add John Belmonte
ethanfurman Jan 20, 2021
f1c4584
more bit-fiddling improvements
ethanfurman Jan 20, 2021
e3713aa
use pop() instead of "del"
ethanfurman Jan 20, 2021
c4ec211
update DynamicClassAttribute __doc__
ethanfurman Jan 20, 2021
00b2bfe
remove formatting changes
ethanfurman Jan 20, 2021
9f432c3
remove extra parens
ethanfurman Jan 20, 2021
15c060a
remove formatting changes
ethanfurman Jan 20, 2021
86d7669
remove formatting
ethanfurman Jan 20, 2021
8000
55915df
simplify determination of member iteration
ethanfurman Jan 22, 2021
95bf9c8
add note about next auto() value for Enum and Flag
ethanfurman Jan 25, 2021
41ac1ce
local name optimizations
ethanfurman Jan 25, 2021
3ea814e
remove commented-out code
ethanfurman Jan 25, 2021
4983558
add test for next auto() and _order_
ethanfurman Jan 25, 2021
651da18
raise TypeError if _value_ not added in custom new
ethanfurman Jan 25, 2021
6e99d48
enable doc tests, update formatting
ethanfurman Jan 25, 2021
b52c5a2
fix note
ethanfurman Jan 25, 2021
8d7b272
Update 2021-01-14-15-07-16.bpo-38250.1fvhOk.rst
ethanfurman Jan 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add John Belmonte
  • Loading branch information
ethanfurman committed Jan 20, 2021
commit 18bcbacaab7026eadf3550eb8fab9fa7439d3dc8
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ Stefan Behnel
Reimer Behrends
Ben Bell
Thomas Bellman
John Belmonte
Alexander “Саша” Belopolsky
Eli Bendersky
Nikhil Benesch
Expand Down
0