Home
last modified time | relevance | path

Searched refs:_order_ (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/
Denum.py157 _order_ = classdict.pop('_order_', None)
270 if _order_ is not None:
271 if isinstance(_order_, str):
272 _order_ = _order_.replace(',', ' ').split()
273 if _order_ != enum_class._member_names_:
/external/python/cpython3/Doc/library/
Denum.rst1027 - ``_order_`` -- used in Python 2/3 code to ensure member order is consistent
1033 .. versionadded:: 3.6 ``_missing_``, ``_order_``, ``_generate_next_value_``
1036 To help keep Python 2 / Python 3 code in sync an :attr:`_order_` attribute can
1041 ... _order_ = 'RED GREEN BLUE'
1048 TypeError: member order does not match _order_
1052 In Python 2 code the :attr:`_order_` attribute is necessary as definition
/external/python/cpython3/Lib/test/
Dtest_enum.py1883 _order_ = 'red green blue' variable in TestOrder.test_same_members.Color
1890 _order_ = 'red green blue' variable in TestOrder.test_same_members_with_aliases.Color
1899 _order_ = 'red green blue' variable in TestOrder.test_same_members_wrong_order.Color
1907 _order_ = 'red green blue purple' variable in TestOrder.test_order_has_extra_members.Color
1915 _order_ = 'red green blue purple' variable in TestOrder.test_order_has_extra_members_with_aliases.Color
1924 _order_ = 'red green blue' variable in TestOrder.test_enum_has_extra_members.Color
1933 _order_ = 'red green blue' variable in TestOrder.test_enum_has_extra_members_with_aliases.Color
/external/python/cpython3/Misc/NEWS.d/
D3.6.0a4.rst298 Add _order_ compatibility shim to enum.Enum for Python 2/3 code bases.