MCPcopy Index your code
hub / github.com/python/cpython / _iter_member_by_def_

Method _iter_member_by_def_

Lib/enum.py:1465–1472  ·  view source on GitHub ↗

Extract all members from the value in definition order.

(cls, value)

Source from the content-addressed store, hash-verified

1463
1464 @classmethod
1465 def _iter_member_by_def_(cls, value):
1466 """
1467 Extract all members from the value in definition order.
1468 """
1469 yield from sorted(
1470 cls._iter_member_by_value_(value),
1471 key=lambda m: m._sort_order_,
1472 )
1473
1474 @classmethod
1475 def _missing_(cls, value):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected