Searched refs:_order_ (Results 1 – 4 of 4) sorted by relevance
203 _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_:
1096 - ``_order_`` -- used in Python 2/3 code to ensure member order is consistent1102 .. versionadded:: 3.6 ``_missing_``, ``_order_``, ``_generate_next_value_``1105 To help keep Python 2 / Python 3 code in sync an :attr:`_order_` attribute can1110 ... _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
2162 _order_ = 'red green blue' variable in TestOrder.test_same_members.Color2169 _order_ = 'red green blue' variable in TestOrder.test_same_members_with_aliases.Color2178 _order_ = 'red green blue' variable in TestOrder.test_same_members_wrong_order.Color2186 _order_ = 'red green blue purple' variable in TestOrder.test_order_has_extra_members.Color2194 _order_ = 'red green blue purple' variable in TestOrder.test_order_has_extra_members_with_aliases.Color2203 _order_ = 'red green blue' variable in TestOrder.test_enum_has_extra_members.Color2212 _order_ = 'red green blue' variable in TestOrder.test_enum_has_extra_members_with_aliases.Color
298 Add _order_ compatibility shim to enum.Enum for Python 2/3 code bases.