mirror of https://github.com/python/cpython
Issue19030: fixed comment that was still referring to a changed descriptor.
This commit is contained in:
parent
9a1daf5765
commit
33918c128b
|
@ -471,8 +471,8 @@ class Enum(metaclass=EnumMeta):
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self._name_)
|
return hash(self._name_)
|
||||||
|
|
||||||
# _RouteClassAttributeToGetattr is used to provide access to the `name`
|
# DynamicClassAttribute is used to provide access to the `name` and
|
||||||
# and `value` properties of enum members while keeping some measure of
|
# `value` properties of enum members while keeping some measure of
|
||||||
# protection from modification, while still allowing for an enumeration
|
# protection from modification, while still allowing for an enumeration
|
||||||
# to have members named `name` and `value`. This works because enumeration
|
# to have members named `name` and `value`. This works because enumeration
|
||||||
# members are not set directly on the enum class -- __getattr__ is
|
# members are not set directly on the enum class -- __getattr__ is
|
||||||
|
|
Loading…
Reference in New Issue