Searched refs:_order_ (Results 1 – 4 of 4) sorted by relevance
157 _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_:
1027 - ``_order_`` -- used in Python 2/3 code to ensure member order is consistent1033 .. versionadded:: 3.6 ``_missing_``, ``_order_``, ``_generate_next_value_``1036 To help keep Python 2 / Python 3 code in sync an :attr:`_order_` attribute can1041 ... _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
1883 _order_ = 'red green blue' variable in TestOrder.test_same_members.Color1890 _order_ = 'red green blue' variable in TestOrder.test_same_members_with_aliases.Color1899 _order_ = 'red green blue' variable in TestOrder.test_same_members_wrong_order.Color1907 _order_ = 'red green blue purple' variable in TestOrder.test_order_has_extra_members.Color1915 _order_ = 'red green blue purple' variable in TestOrder.test_order_has_extra_members_with_aliases.Color1924 _order_ = 'red green blue' variable in TestOrder.test_enum_has_extra_members.Color1933 _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.