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
View 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
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
37k
Star
77.4k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Doc
library
enum.rst
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 Jan 25, 2020
bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) (GH-17876)
Show description for b0a6ec2
2 people
authored and
ned-deily
committed
b0a6ec2
View commit details
Copy full SHA for b0a6ec2
View code at this point
Browse repository at this point
Commits on Jan 27, 2019
Fix typo: class declaration (GH-11678)
Show description for ff27f81
miss-islington
and
nuno-andre
authored
ff27f81
View commit details
Copy full SHA for ff27f81
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 Jul 7, 2018
Fix moduleauthor/sectionauthor directives in Enum (GH-8117)
Show description for c5e4c76
miss-islington
and
andresdelfino
authored
c5e4c76
View commit details
Copy full SHA for c5e4c76
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 Jan 13, 2018
Improve enum.Flag code example (GH-5167)
Show description for 0f31c74
JulianKahnert
authored and
Mariatta
committed
0f31c74
View commit details
Copy full SHA for 0f31c74
View code at this point
Browse repository at this point
Commits on Feb 28, 2017
correct documentation for enum.html (#358)
kartikanand
authored and
vstinner
committed
6265842
View commit details
Copy full SHA for 6265842
View code at this point
Browse repository at this point
Commits on Jan 2, 2017
Issue #29129: Fix typo in "Using auto" section
berkerpeksag
committed
2a267a1
View commit details
Copy full SHA for 2a267a1
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
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 8, 2016
improve Enum docs
ethanfurman
committed
54924df
View commit details
Copy full SHA for 54924df
View code at this point
Browse repository at this point
Commits on Sep 7, 2016
add recipes for pseudo-valueless enums
ethanfurman
committed
6a137e8
View commit details
Copy full SHA for 6a137e8
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: 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 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 6, 2016
Silence warnings from 'make suspicious' to make the docs buildbot happy
berkerpeksag
committed
43b586b
View commit details
Copy full SHA for 43b586b
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 18, 2016
Issue #24314: Merge doc links from 3.5
vadmium
committed
2fec611
View commit details
Copy full SHA for 2fec611
View code at this point
Browse repository at this point
Issue #24314: Fix doc links for general attributes like __name__, __dict__
vadmium
committed
bae5d81
View commit details
Copy full SHA for bae5d81
View code at this point
Browse repository at this point
Commits on May 30, 2016
Issue #27125: Merge typo fixes from 3.5
vadmium
committed
e514093
View commit details
Copy full SHA for e514093
View code at this point
Browse repository at this point
Issue #27125: Remove duplicated words from documentation and comments
vadmium
committed
a90a4a9
View commit details
Copy full SHA for a90a4a9
View code at this point
Browse repository at this point
Commits on Feb 13, 2016
Issue #25179: Documentation for formatted string literals aka f-strings
Show description for bc1ee46
vadmium
committed
bc1ee46
View commit details
Copy full SHA for bc1ee46
View code at this point
Browse repository at this point
Commits on Feb 8, 2016
Merge string formatting doc fixes from 3.5
vadmium
committed
46988d3
View commit details
Copy full SHA for 46988d3
View code at this point
Browse repository at this point
Issue #25179: Preparatory cleanup of existing docs on string formatting
Show description for d5db147
vadmium
committed
d5db147
View commit details
Copy full SHA for d5db147
View code at this point
Browse repository at this point
Commits on Jan 16, 2016
use public 'value'
ethanfurman
committed
2ae4ea5
View commit details
Copy full SHA for 2ae4ea5
View code at this point
Browse repository at this point
Commits on Jan 15, 2016
revert change 87a9dff5106c: pure Enum members again evaluate to True;
Show description for 60255b6
ethanfurman
committed
60255b6
View commit details
Copy full SHA for 60255b6
View code at this point
Browse repository at this point
Commits on Nov 20, 2015
Close 25594: advise against accessing Enum members from other members
ethanfurman
committed
748dad5
View commit details
Copy full SHA for 748dad5
View code at this point
Browse repository at this point
Close issue25594: advise against accessing Enum members from other members
ethanfurman
committed
92e5d2f
View commit details
Copy full SHA for 92e5d2f
View code at this point
Browse repository at this point
Commits on Oct 14, 2015
Issue #25210: Change error message of do_richcompare()
Show description for 91108f0
vstinner
committed
91108f0
View commit details
Copy full SHA for 91108f0
View code at this point
Browse repository at this point
Commits on Oct 10, 2015
Issue #25161: Merge full stops from 3.4 into 3.5
vadmium
committed
84835ab
View commit details
Copy full SHA for 84835ab
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.