History for Lib/enum.py - python/cpython · GitHub

github.com

Tin mới

gh-121291: Respect mixin bitwise-operator overrides on Flag subclasses (GH-155862)

gh-121291: Respect mixin bitwise-operator overrides on Flag subclasses (GH-155862)

gh-150817: Speed up Flag bitwise operations (GH-150824)

gh-150817: Speed up Flag bitwise operations (GH-150824)

gh-139398: [Enum] Add supported sunder names to `__dir__` for REPL completions (GH-139985)

gh-139398: [Enum] Add supported sunder names to `__dir__` for REPL completions (GH-139985)

gh-150285: Fix too long docstrings in some Python modules (GH-150366)

gh-150285: Fix too long docstrings in some Python modules (GH-150366)

gh-140806: add docs for `enum.bin` function (#140807)

gh-140806: add docs for `enum.bin` function (#140807)

gh-135559: [Enum] dir() on a Flag now shows aliases (GH-136527)

gh-135559: [Enum] dir() on a Flag now shows aliases (GH-136527)

gh-140766: [Enum] add `show_flag_values` and `bin` to `enum.__all__` (GH-140765)

gh-140766: [Enum] add `show_flag_values` and `bin` to `enum.__all__` (GH-140765)

gh-140609: delete unused `_stdlib_enums` in enum.py (#140618)

gh-140609: delete unused `_stdlib_enums` in enum.py (#140618)

gh-136764: improve comment in enum.verify.__call__ (GH-136774)

gh-136764: improve comment in enum.verify.__call__ (GH-136774)

gh-107538: [Enum] fix handling of inverted/negative values (GH-132273)

gh-107538: [Enum] fix handling of inverted/negative values (GH-132273)

gh-132684: [Enum] only call _missing_ in __contains__ for Flags (GH-132790)

gh-132684: [Enum] only call _missing_ in __contains__ for Flags (GH-132790)

enum: remove unused function (#132044)

enum: remove unused function (#132044)

gh-131045: [Enum] fix flag containment checks when using values (GH-131053)

gh-131045: [Enum] fix flag containment checks when using values (GH-131053)

gh-112328: Make EnumDict usable on its own and document it (GH-123669)

gh-112328: Make EnumDict usable on its own and document it (GH-123669)

gh-128080: remove unnecessary `__init__` method from Enum (GH-128081)

gh-128080: remove unnecessary `__init__` method from Enum (GH-128081)

gh-125259: Fix error notes removal in enum initialization (GH-125647)

gh-125259: Fix error notes removal in enum initialization (GH-125647)

gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values (GH-125735)

gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values (GH-125735)

gh-116110: remove extra processing for the __signature__ attribute (GH-116234)

gh-116110: remove extra processing for the __signature__ attribute (GH-116234)

Fix typos (#123775)

Fix typos (#123775)

Fix typos in comments and docstring (#122720)

Fix typos in comments and docstring (#122720)

gh-118650: Exclude `_repr_*` methods from Enum's _sunder_ reservation (GH-118651)

gh-118650: Exclude `_repr_*` methods from Enum's _sunder_ reservation (GH-118651)

gh-118465: Add __firstlineno__ attribute to class (GH-118475)

gh-118465: Add __firstlineno__ attribute to class (GH-118475)

gh-117663: [Enum] fix _simple_enum's detection of aliases (GH-117664)

gh-117663: [Enum] fix _simple_enum's detection of aliases (GH-117664)

gh-115775: Compiler adds __static_attributes__ field to classes (#115913)

gh-115775: Compiler adds __static_attributes__ field to classes (#115913)

gh-116600: [Enum] fix global Flag repr (GH-116615)

gh-116040: [Enum] fix test_empty_names test (GH-116508)

gh-116040: [Enum] fix by-value calls when second value is falsey; e.g. Cardinal(1, 0) (GH-116072)

gh-115821: [Enum] better error message for calling super().__new__() (GH-116063)

gh-115539: Allow enum.Flag to have None members (GH-115636)

gh-114071: [Enum] update docs and code for tuples/subclasses (GH-114871)

gh-114149: [Enum] revert #114160 and add more tuple-subclass tests (GH-114215)

gh-114149: [Enum] fix tuple subclass handling when using custom __new__ (GH-114160)

gh-112328: [Enum] Make some private attributes public. (GH-112514)

[Enum] update class creation for RuntimeError changes (GH-111815)

gh-111181: Fix enum doctests (GH-111180)