ID EN
Enum

__getattr__

Python 3.11 🇮🇩 Bahasa Indonesia

Returns the Enum member in cls matching name, or raises an AttributeError:

Syntax

PYTHON
__getattr__(cls, name)

Contoh

Example 1
PYTHON
>>> Color.GREEN
<Color.GREEN: 2>

See Also

AttributeError