Home
last modified time | relevance | path

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

/third_party/python/Lib/
Denum.py203 _order_ = classdict.pop('_order_', None)
345 if _order_ is not None:
346 if isinstance(_order_, str):
347 _order_ = _order_.replace(',', ' ').split()
348 if _order_ != enum_class._member_names_:
/third_party/python/Doc/library/
Denum.rst1096 - ``_order_`` -- used in Python 2/3 code to ensure member order is consistent
1102 .. versionadded:: 3.6 ``_missing_``, ``_order_``, ``_generate_next_value_``
1105 To help keep Python 2 / Python 3 code in sync an :attr:`_order_` attribute can
1110 ... _order_ = 'RED GREEN BLUE'
1117 TypeError: member order does not match _order_
1121 In Python 2 code the :attr:`_order_` attribute is necessary as definition
/third_party/python/Lib/test/
Dtest_enum.py2162 _order_ = 'red green blue' variable in TestOrder.test_same_members.Color
2169 _order_ = 'red green blue' variable in TestOrder.test_same_members_with_aliases.Color
2178 _order_ = 'red green blue' variable in TestOrder.test_same_members_wrong_order.Color
2186 _order_ = 'red green blue purple' variable in TestOrder.test_order_has_extra_members.Color
2194 _order_ = 'red green blue purple' variable in TestOrder.test_order_has_extra_members_with_aliases.Color
2203 _order_ = 'red green blue' variable in TestOrder.test_enum_has_extra_members.Color
2212 _order_ = 'red green blue' variable in TestOrder.test_enum_has_extra_members_with_aliases.Color
/third_party/python/Misc/NEWS.d/
D3.6.0a4.rst298 Add _order_ compatibility shim to enum.Enum for Python 2/3 code bases.