58 Commits (c4c9866064f03646c686d7e08b00aeb203c35c19)

Author SHA1 Message Date
Ville Skyttä 49b2734bf1 Spelling fixes (#2902) 9 years ago
Dong-hee Na dcc8ce44c7 bpo-30616: Functional API of enum allows to create empty enums. (#2304) 9 years ago
Ethan Furman 28cf663ff0 closes issue29167: fix race condition in (Int)Flag 9 years ago
Raymond Hettinger 381dc6c22f Issue #29103: Remove unused import. Noticed by Jean-Sebastien Bevilacqua. 9 years ago
Ethan Furman 23bb6f48ea close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico. 9 years ago
Ethan Furman 3515dcce80 issue23591: fix flag decomposition and repr 10 years ago
Ethan Furman 06339e7493 Enum._convert: sort by value, then by name 10 years ago
Ethan Furman c16595e567 issue23591: add auto() for auto-generating Enum member values 10 years ago
Ethan Furman 27682d2698 issue23591: more docs; slight change to repr 10 years ago
Ethan Furman 25d94bbf05 issue23591: bool(empty_flags) == False; more docs & tests 10 years ago
Ethan Furman 0443953067 issue23591: optimize _high_bit() 10 years ago
Ethan Furman 65a5a47d79 issue23591: add docs; code cleanup; more tests 10 years ago
Ethan Furman ee47e5cf8a issue23591: add Flags, IntFlags, and tests 10 years ago
Ethan Furman e8e61277ff issue26981: add _order_ compatibility shim to enum.Enum 10 years ago
Ethan Furman 332dbc7325 Issue26988: remove AutoEnum 10 years ago
Ethan Furman 73fc586d9f Add AutoEnum: automatically provides next value if missing. Issue 26988. 10 years ago
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) 6f20bd6063 signal, socket, and ssl module IntEnum constant name lookups now return a 10 years ago
Ethan Furman 3803ad47bb issue26893: use mro() to examine class heirarchy 10 years ago
Ethan Furman 5de67b106a Issue26748: Enum classes should evaluate as True 10 years ago
Ethan Furman 60255b67b9 revert change 87a9dff5106c: pure Enum members again evaluate to True; 10 years ago
Martin Panter 19e69c5a20 Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 10 years ago
Ethan Furman c791507e1f Issue 25147: add reason for using _collections 11 years ago
Ethan Furman e5754ab0c4 Close issue25147: use C implementation of OrderedDict 11 years ago
Ethan Furman 6db1fd5fb8 Close issue24840: Enum._value_ is queried for bool(); original patch by Mike Lundy 11 years ago
Ethan Furman 48a724fa33 Close issue23900: add default __doc__ to new enumerations that do not specify one. 11 years ago
Ethan Furman 482fe0477e issue23673 11 years ago
Ethan Furman 24e837f231 issue23673 11 years ago
Ethan Furman 354ecf1ef2 Close issue23486: performance boost for enum member lookup 11 years ago
Ethan Furman ec5f8eb85f Issue22506: remove name & value from __dir__ as they now show up automatically 12 years ago
Ethan Furman 0ae550bdde Issue22506: added methods on base Enum class now show up in dir of Enum subclass (3.4) 12 years ago
Ethan Furman d9925a18ec Close issue21706: add 'start' parameter to functional API 12 years ago
Ethan Furman 0081f23a08 consistently use _name_ and _value_; patch from Kiss Gyorgy 12 years ago
Ethan Furman 2da950460d Close issue20653: improve functional API docs; minor code changes 12 years ago
Ethan Furman 9c45444727 Close issue20653: improve functional API docs; minor code changes 12 years ago
Ethan Furman 9a0cbcc4f8 Close issue20653: allow Enum subclasses to override __reduce_ex__ 12 years ago
Ethan Furman dc87052c0c Close issue20653: allow Enum subclasses to override __reduce_ex__ 12 years ago
Ethan Furman ca1b794dac Close issue20534: all pickle protocols now supported. 12 years ago
Ethan Furman be3c2fea35 removed Enum.__eq__ as it added nothing 13 years ago
Ethan Furman 648f860c22 Close #19156: add tests and fix for Enum helper edge cases. Patch from CliffM. 13 years ago
Ethan Furman 33918c128b Issue19030: fixed comment that was still referring to a changed descriptor. 13 years ago
Ethan Furman e03ea37a7b Close #19030: improvements to inspect and Enum. 13 years ago
Ethan Furman 64a9972b40 Close #19025: Better error message when trying to delete an Enum member. 13 years ago
Ethan Furman c850f34220 Close #18693: Enum is now more help() friendly. 13 years ago
Ethan Furman 101e0746d3 Close #18989: enum members will no longer overwrite other attributes, nor be overwritten by them. 13 years ago
Ethan Furman 2131a4a2fc Add __reversed__ to Enum. Minor code reorg (moved __members__ to be in alpha order). 13 years ago
Ethan Furman f203f2d51d Close #18924: Block naive attempts to change an Enum member. 13 years ago
Ethan Furman ec15a826ce Close #18738: Route __format__ calls to mixed-in type for mixed Enums (such as IntEnum). 13 years ago
Ethan Furman 388a3921cf Issue 18693: Put custom __dir__ back in place. Will instead look at fixing `help()`. 13 years ago
Ethan Furman 53f58dbd12 Close #18693: __dir__ removed from Enum; help() now helpful. 13 years ago
Ethan Furman 5e5a8230c2 Close #18635: Move class level private attribute from instance to class. 13 years ago