Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
fe54dd8a08b171c20bafe0759c17464a2642030d
/
Lib
/
enum.py
381dc6c
Issue #29103: Remove unused import. Noticed by Jean-Sebastien Bevilacqua.
by Raymond Hettinger
· 8 years ago
23bb6f4
close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico.
by Ethan Furman
· 8 years ago
3515dcc
issue23591: fix flag decomposition and repr
by Ethan Furman
· 8 years ago
06339e7
Enum._convert: sort by value, then by name
by Ethan Furman
· 8 years ago
c16595e
issue23591: add auto() for auto-generating Enum member values
by Ethan Furman
· 8 years ago
27682d2
issue23591: more docs; slight change to repr
by Ethan Furman
· 8 years ago
25d94bb
issue23591: bool(empty_flags) == False; more docs & tests
by Ethan Furman
· 8 years ago
0443953
issue23591: optimize _high_bit()
by Ethan Furman
· 8 years ago
65a5a47
issue23591: add docs; code cleanup; more tests
by Ethan Furman
· 8 years ago
ee47e5c
issue23591: add Flags, IntFlags, and tests
by Ethan Furman
· 8 years ago
e8e6127
issue26981: add _order_ compatibility shim to enum.Enum
by Ethan Furman
· 8 years ago
332dbc7
Issue26988: remove AutoEnum
by Ethan Furman
· 8 years ago
73fc586
Add AutoEnum: automatically provides next value if missing. Issue 26988.
by Ethan Furman
· 8 years ago
6f20bd6
signal, socket, and ssl module IntEnum constant name lookups now return a
by Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
· 8 years ago
3547069
issue26893: use mro() to examine class heirarchy
by Ethan Furman
· 8 years ago
3803ad4
issue26893: use mro() to examine class heirarchy
by Ethan Furman
· 8 years ago
0fe7978
Issue26748: Enum classes should evaluate as True
by Ethan Furman
· 9 years ago
de4e079
Issue26748: Enum classes should evaluate as True
by Ethan Furman
· 9 years ago
5de67b1
Issue26748: Enum classes should evaluate as True
by Ethan Furman
· 9 years ago
60255b6
revert change 87a9dff5106c: pure Enum members again evaluate to True;
by Ethan Furman
· 9 years ago
19e69c5
Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej
by Martin Panter
· 9 years ago
c791507
Issue 25147: add reason for using _collections
by Ethan Furman
· 9 years ago
e5754ab
Close issue25147: use C implementation of OrderedDict
by Ethan Furman
· 9 years ago
6db1fd5
Close issue24840: Enum._value_ is queried for bool(); original patch by Mike Lundy
by Ethan Furman
· 9 years ago
48a724f
Close issue23900: add default __doc__ to new enumerations that do not specify one.
by Ethan Furman
· 10 years ago
24e837f
issue23673
by Ethan Furman
· 10 years ago
354ecf1
Close issue23486: performance boost for enum member lookup
by Ethan Furman
· 10 years ago
ec5f8eb
Issue22506: remove name & value from __dir__ as they now show up automatically
by Ethan Furman
· 10 years ago
987f3dd
Issue22506: merge from 3.4
by Ethan Furman
· 10 years ago
0ae550b
Issue22506: added methods on base Enum class now show up in dir of Enum subclass (3.4)
by Ethan Furman
· 10 years ago
d9925a1
Close issue21706: add 'start' parameter to functional API
by Ethan Furman
· 10 years ago
0081f23
consistently use _name_ and _value_; patch from Kiss Gyorgy
by Ethan Furman
· 10 years ago
482fe04
issue23673
by Ethan Furman
· 10 years ago
2da9504
Close issue20653: improve functional API docs; minor code changes
by Ethan Furman
· 11 years ago
dc87052
Close issue20653: allow Enum subclasses to override __reduce_ex__
by Ethan Furman
· 11 years ago
ca1b794
Close issue20534: all pickle protocols now supported.
by Ethan Furman
· 11 years ago
be3c2fe
removed Enum.__eq__ as it added nothing
by Ethan Furman
· 11 years ago
648f860
Close #19156: add tests and fix for Enum helper edge cases. Patch from CliffM.
by Ethan Furman
· 11 years ago
33918c1
Issue19030: fixed comment that was still referring to a changed descriptor.
by Ethan Furman
· 11 years ago
e03ea37
Close #19030: improvements to inspect and Enum.
by Ethan Furman
· 11 years ago
64a9972
Close #19025: Better error message when trying to delete an Enum member.
by Ethan Furman
· 11 years ago
c850f34
Close #18693: Enum is now more help() friendly.
by Ethan Furman
· 11 years ago
101e074
Close #18989: enum members will no longer overwrite other attributes, nor be overwritten by them.
by Ethan Furman
· 11 years ago
2131a4a
Add __reversed__ to Enum. Minor code reorg (moved __members__ to be in alpha order).
by Ethan Furman
· 11 years ago
f203f2d
Close #18924: Block naive attempts to change an Enum member.
by Ethan Furman
· 11 years ago
ec15a82
Close #18738: Route __format__ calls to mixed-in type for mixed Enums (such as IntEnum).
by Ethan Furman
· 11 years ago
9a3777e
#18705: merge with 3.3.
by Ezio Melotti
· 11 years ago
388a392
Issue 18693: Put custom __dir__ back in place. Will instead look at fixing `help()`.
by Ethan Furman
· 11 years ago
53f58db
Close #18693: __dir__ removed from Enum; help() now helpful.
by Ethan Furman
· 11 years ago
5e5a823
Close #18635: Move class level private attribute from instance to class.
by Ethan Furman
· 11 years ago
b41803e
Close #18545: now only executes member_type if no _value_ is assigned in __new__.
by Ethan Furman
· 11 years ago
520ad57
Change _names to _names_ since the latter is reserved for Enum use.
by Ethan Furman
· 11 years ago
2aa2732
Close #18508 -- fix _value2member_map to always have the member's value
by Ethan Furman
· 11 years ago
f24bb35
closes issue18042 -- a `unique` decorator is added to enum.py
by Ethan Furman
· 11 years ago
6b3d64a
Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python standard library).
by Ethan Furman
· 11 years ago