Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
enum.py
on
3.7
User selector
All users
Datepicker
All time
Commit history
Commits on Jun 11, 2020
bpo-40025: Require _generate_next_value_ to be defined before members (GH-19762)
Show description for ebd4400
miss-islington
authored
ebd4400
View commit details
Copy full SHA for ebd4400
View code at this point
Browse repository at this point
Commits on Sep 21, 2019
Doc: Fix spelling errors of 'initial' in enum.py (GH-16314)
Show description for 8d4c52f
miss-islington
and
hongweipeng
authored
8d4c52f
View commit details
Copy full SHA for 8d4c52f
View code at this point
Browse repository at this point
Commits on Mar 8, 2019
bpo-35899: Fix Enum handling of empty and weird strings (GH-11891)
Show description for 8755f0a
miss-islington
and
bdbaraban
authored
8755f0a
View commit details
Copy full SHA for 8755f0a
View code at this point
Browse repository at this point
Commits on Jan 30, 2019
bpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523) (GH-11669)
Show description for 1c79891
2 people
authored and
vstinner
committed
1c79891
View commit details
Copy full SHA for 1c79891
View code at this point
Browse repository at this point
Commits on Dec 26, 2018
Speed-up building enums by value, e.g. http.HTTPStatus(200) (GH-11318) (GH-11324)
Show description for 705b599
miss-islington
and
asvetlov
committed
705b599
View commit details
Copy full SHA for 705b599
View code at this point
Browse repository at this point
Commits on Oct 19, 2018
bpo-34536: raise error for invalid _missing_ results (GH-9147) (GH-9978)
Show description for 0f2fc8b
vstinner
authored and
ethanfurman
committed
0f2fc8b
View commit details
Copy full SHA for 0f2fc8b
View code at this point
Browse repository at this point
Commits on Oct 6, 2018
bpo-34909: keep searching mixins until base class is found (GH-9737) (GH-9738)
Show description for 453b3b0
miss-islington
authored and
ethanfurman
committed
453b3b0
View commit details
Copy full SHA for 453b3b0
View code at this point
Browse repository at this point
Commits on Sep 22, 2018
[3.7] bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328) (GH-9486)
Show description for 0c076ca
ethanfurman
authored
0c076ca
View commit details
Copy full SHA for 0c076ca
View code at this point
Browse repository at this point
Commits on Sep 10, 2018
[3.7] bpo-34282: Fix Enum._convert method shadowing members named _convert (GH-9034)
Show description for c0d63bf
orlnub123
authored and
ethanfurman
committed
c0d63bf
View commit details
Copy full SHA for c0d63bf
View code at this point
Browse repository at this point
Commits on Apr 16, 2018
bpo-31947: remove None default for names param in Enum._create_ (GH-4288)
Show description for 3bcca48
miss-islington
and
anentropic
authored
3bcca48
View commit details
Copy full SHA for 3bcca48
View code at this point
Browse repository at this point
Commits on Apr 12, 2018
[3.7] bpo-33217: deprecate non-Enum lookups in Enums (GH-6392)
Show description for 3715176
ethanfurman
authored
3715176
View commit details
Copy full SHA for 3715176
View code at this point
Browse repository at this point
Commits on Jan 22, 2018
bpo-31801: Enum: add _ignore_ as class option (#5237)
Show description for a4b1bb4
ethanfurman
authored
a4b1bb4
View commit details
Copy full SHA for a4b1bb4
View code at this point
Browse repository at this point
Commits on Sep 25, 2017
bpo-30152: Reduce the number of imports for argparse. (#1269)
serhiy-storchaka
authored
8110837
View commit details
Copy full SHA for 8110837
View code at this point
Browse repository at this point
Commits on Aug 3, 2017
Spelling fixes (#2902)
scop
authored and
serhiy-storchaka
committed
49b2734
View commit details
Copy full SHA for 49b2734
View code at this point
Browse repository at this point
Commits on Jun 21, 2017
bpo-30616: Functional API of enum allows to create empty enums. (#2304)
Show description for dcc8ce4
corona10
authored and
ethanfurman
committed
dcc8ce4
View commit details
Copy full SHA for dcc8ce4
View code at this point
Browse repository at this point
Commits on Jan 24, 2017
closes issue29167: fix race condition in (Int)Flag
ethanfurman
committed
28cf663
View commit details
Copy full SHA for 28cf663
View code at this point
Browse repository at this point
Commits on Dec 30, 2016
Issue #29103: Remove unused import. Noticed by Jean-Sebastien Bevilacqua.
rhettinger
committed
381dc6c
View commit details
Copy full SHA for 381dc6c
View code at this point
Browse repository at this point
Commits on Nov 21, 2016
close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico.
ethanfurman
committed
23bb6f4
View commit details
Copy full SHA for 23bb6f4
View code at this point
Browse repository at this point
Commits on Sep 18, 2016
issue23591: fix flag decomposition and repr
ethanfurman
committed
3515dcc
View commit details
Copy full SHA for 3515dcc
View code at this point
Browse repository at this point
Commits on Sep 11, 2016
Enum._convert: sort by value, then by name
ethanfurman
committed
06339e7
View commit details
Copy full SHA for 06339e7
View code at this point
Browse repository at this point
issue23591: add auto() for auto-generating Enum member values
ethanfurman
committed
c16595e
View commit details
Copy full SHA for c16595e
View code at this point
Browse repository at this point
Commits on Sep 4, 2016
issue23591: more docs; slight change to repr
ethanfurman
committed
27682d2
View commit details
Copy full SHA for 27682d2
View code at this point
Browse repository at this point
Commits on Sep 2, 2016
issue23591: bool(empty_flags) == False; more docs & tests
ethanfurman
committed
25d94bb
View commit details
Copy full SHA for 25d94bb
View code at this point
Browse repository at this point
issue23591: optimize _high_bit()
ethanfurman
committed
0443953
View commit details
Copy full SHA for 0443953
View code at this point
Browse repository at this point
issue23591: add docs; code cleanup; more tests
ethanfurman
committed
65a5a47
View commit details
Copy full SHA for 65a5a47
View code at this point
Browse repository at this point
Commits on Aug 31, 2016
issue23591: add Flags, IntFlags, and tests
ethanfurman
committed
ee47e5c
View commit details
Copy full SHA for ee47e5c
View code at this point
Browse repository at this point
Commits on Aug 20, 2016
issue26981: add _order_ compatibility shim to enum.Enum
ethanfurman
committed
e8e6127
View commit details
Copy full SHA for e8e6127
View code at this point
Browse repository at this point
Issue26988: remove AutoEnum
ethanfurman
committed
332dbc7
View commit details
Copy full SHA for 332dbc7
View code at this point
Browse repository at this point
Commits on Aug 5, 2016
Add AutoEnum: automatically provides next value if missing. Issue 26988.
ethanfurman
committed
73fc586
View commit details
Copy full SHA for 73fc586
View code at this point
Browse repository at this point
Commits on Jun 3, 2016
signal, socket, and ssl module IntEnum constant name lookups now return a
Show description for 6f20bd6
gpshead
committed
6f20bd6
View commit details
Copy full SHA for 6f20bd6
View code at this point
Browse repository at this point
Commits on May 1, 2016
issue26893: use mro() to examine class heirarchy
ethanfurman
committed
3547069
View commit details
Copy full SHA for 3547069
View code at this point
Browse repository at this point
issue26893: use mro() to examine class heirarchy
ethanfurman
committed
3803ad4
View commit details
Copy full SHA for 3803ad4
View code at this point
Browse repository at this point
Commits on Apr 14, 2016
Issue26748: Enum classes should evaluate as True
ethanfurman
committed
0fe7978
View commit details
Copy full SHA for 0fe7978
View code at this point
Browse repository at this point
Issue26748: Enum classes should evaluate as True
ethanfurman
committed
de4e079
View commit details
Copy full SHA for de4e079
View code at this point
Browse repository at this point
Issue26748: Enum classes should evaluate as True
ethanfurman
committed
5de67b1
View commit details
Copy full SHA for 5de67b1
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.