Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | issue23591: more docs; slight change to repr | Ethan Furman | 2016-09-04 | 1 | -8/+5 |
| | |||||
* | issue23591: bool(empty_flags) == False; more docs & tests | Ethan Furman | 2016-09-02 | 1 | -0/+3 |
| | |||||
* | issue23591: optimize _high_bit() | Ethan Furman | 2016-09-02 | 1 | -7/+2 |
| | |||||
* | issue23591: add docs; code cleanup; more tests | Ethan Furman | 2016-09-02 | 1 | -4/+4 |
| | |||||
* | issue23591: add Flags, IntFlags, and tests | Ethan Furman | 2016-08-31 | 1 | -10/+217 |
| | |||||
* | issue26981: add _order_ compatibility shim to enum.Enum | Ethan Furman | 2016-08-20 | 1 | -2/+15 |
| | |||||
* | Issue26988: remove AutoEnum | Ethan Furman | 2016-08-20 | 1 | -122/+13 |
| | |||||
* | Add AutoEnum: automatically provides next value if missing. Issue 26988. | Ethan Furman | 2016-08-05 | 1 | -13/+122 |
| | |||||
* | signal, socket, and ssl module IntEnum constant name lookups now return a | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-03 | 1 | -2/+8 |
| | | | | | | | | consistent name for values having multiple names. Ex: signal.Signals(6) now refers to itself as signal.SIGALRM rather than flipping between that and signal.SIGIOT based on the interpreter's hash randomization seed. This helps finish issue27167. | ||||
* | issue26893: use mro() to examine class heirarchy | Ethan Furman | 2016-05-01 | 1 | -1/+1 |
|\ | |||||
| * | issue26893: use mro() to examine class heirarchy | Ethan Furman | 2016-05-01 | 1 | -1/+1 |
| | | |||||
* | | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+6 |
|\ \ | |/ | |||||
| * | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+6 |
| |\ | |||||
| | * | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+6 |
| | | | |||||
| | * | issue23673 | Ethan Furman | 2015-03-19 | 1 | -0/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method | ||||
* | | | revert change 87a9dff5106c: pure Enum members again evaluate to True; | Ethan Furman | 2016-01-15 | 1 | -3/+0 |
| | | | | | | | | | | | | | | | update Finer Points section of docs to cover boolean evaluation; add more tests for pure and mixed boolean evaluation | ||||
* | | | Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej | Martin Panter | 2015-11-14 | 1 | -1/+1 |
| | | | |||||
* | | | Issue 25147: add reason for using _collections | Ethan Furman | 2015-09-18 | 1 | -0/+1 |
| | | | |||||
* | | | Close issue25147: use C implementation of OrderedDict | Ethan Furman | 2015-09-18 | 1 | -1/+6 |
| | | | |||||
* | | | Close issue24840: Enum._value_ is queried for bool(); original patch by Mike ↵ | Ethan Furman | 2015-09-18 | 1 | -0/+3 |
|/ / | | | | | | | Lundy | ||||
* | | Close issue23900: add default __doc__ to new enumerations that do not ↵ | Ethan Furman | 2015-04-12 | 1 | -0/+4 |
| | | | | | | | | specify one. | ||||
* | | issue23673 | Ethan Furman | 2015-03-19 | 1 | -0/+26 |
| | | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method | ||||
* | | Close issue23486: performance boost for enum member lookup | Ethan Furman | 2015-03-11 | 1 | -1/+10 |
| | | |||||
* | | Issue22506: remove name & value from __dir__ as they now show up automatically | Ethan Furman | 2014-10-21 | 1 | -2/+1 |
| | | |||||
* | | Issue22506: merge from 3.4 | Ethan Furman | 2014-10-14 | 1 | -1/+6 |
|\ \ | |/ | |||||
| * | Issue22506: added methods on base Enum class now show up in dir of Enum ↵ | Ethan Furman | 2014-10-14 | 1 | -1/+6 |
| | | | | | | | | subclass (3.4) | ||||
* | | Close issue21706: add 'start' parameter to functional API | Ethan Furman | 2014-09-17 | 1 | -8/+8 |
|/ | |||||
* | consistently use _name_ and _value_; patch from Kiss Gyorgy | Ethan Furman | 2014-09-17 | 1 | -5/+5 |
| | |||||
* | Close issue20653: improve functional API docs; minor code changes | Ethan Furman | 2014-03-03 | 1 | -12/+27 |
| | |||||
* | Close issue20653: allow Enum subclasses to override __reduce_ex__ | Ethan Furman | 2014-02-18 | 1 | -13/+13 |
| | |||||
* | Close issue20534: all pickle protocols now supported. | Ethan Furman | 2014-02-08 | 1 | -11/+17 |
| | |||||
* | removed Enum.__eq__ as it added nothing | Ethan Furman | 2013-11-13 | 1 | -5/+0 |
| | |||||
* | Close #19156: add tests and fix for Enum helper edge cases. Patch from CliffM. | Ethan Furman | 2013-10-07 | 1 | -2/+4 |
| | |||||
* | Issue19030: fixed comment that was still referring to a changed descriptor. | Ethan Furman | 2013-09-28 | 1 | -2/+2 |
| | |||||
* | Close #19030: improvements to inspect and Enum. | Ethan Furman | 2013-09-25 | 1 | -29/+3 |
| | | | | | | | | | | inspect.getmembers and inspect.classify_class_attrs now search the metaclass mro for types.DynamicClassAttributes (what use to be called enum._RouteClassAttributeToGetattr); in part this means that these two functions no longer rely solely on dir(). Besides now returning more accurate information, these improvements also allow a more helpful help() on Enum classes. | ||||
* | Close #19025: Better error message when trying to delete an Enum member. | Ethan Furman | 2013-09-22 | 1 | -2/+12 |
| | | | | Also slight code reorg for PEP 8 guidelines. | ||||
* | Close #18693: Enum is now more help() friendly. | Ethan Furman | 2013-09-15 | 1 | -2/+8 |
| | |||||
* | Close #18989: enum members will no longer overwrite other attributes, nor be ↵ | Ethan Furman | 2013-09-15 | 1 | -15/+21 |
| | | | | overwritten by them. | ||||
* | Add __reversed__ to Enum. Minor code reorg (moved __members__ to be in ↵ | Ethan Furman | 2013-09-15 | 1 | -10/+13 |
| | | | | alpha order). | ||||
* | Close #18924: Block naive attempts to change an Enum member. | Ethan Furman | 2013-09-06 | 1 | -0/+13 |
| | |||||
* | Close #18738: Route __format__ calls to mixed-in type for mixed Enums (such ↵ | Ethan Furman | 2013-09-01 | 1 | -2/+16 |
| | | | | as IntEnum). | ||||
* | #18705: merge with 3.3. | Ezio Melotti | 2013-08-17 | 1 | -3/+3 |
| | |||||
* | Issue 18693: Put custom __dir__ back in place. Will instead look at fixing ↵ | Ethan Furman | 2013-08-12 | 1 | -0/+6 |
| | | | | `help()`. | ||||
* | Close #18693: __dir__ removed from Enum; help() now helpful. | Ethan Furman | 2013-08-10 | 1 | -6/+0 |
| | |||||
* | Close #18635: Move class level private attribute from instance to class. | Ethan Furman | 2013-08-04 | 1 | -1/+1 |
| | |||||
* | Close #18545: now only executes member_type if no _value_ is assigned in ↵ | Ethan Furman | 2013-07-25 | 1 | -4/+4 |
| | | | | __new__. | ||||
* | Change _names to _names_ since the latter is reserved for Enum use. | Ethan Furman | 2013-07-20 | 1 | -30/+30 |
| | | | | | Before this change only the methods were _single_underscored_; now the attributes are as well. | ||||
* | Close #18508 -- fix _value2member_map to always have the member's value | Ethan Furman | 2013-07-20 | 1 | -11/+13 |
| | |||||
* | closes issue18042 -- a `unique` decorator is added to enum.py | Ethan Furman | 2013-07-19 | 1 | -1/+15 |
| | | | | | The docs also clarify the 'Interesting Example' duplicate-free enum is for demonstration purposes. | ||||
* | Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python ↵ | Ethan Furman | 2013-06-14 | 1 | -0/+465 |
standard library). Missing files added. News entry added. |