MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _select_for_exit

Method _select_for_exit

tools/python-3.11.9-amd64/Lib/weakref.py:635–639  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

633
634 @classmethod
635 def _select_for_exit(cls):
636 # Return live finalizers marked for exit, oldest first
637 L = [(f,i) for (f,i) in cls._registry.items() if i.atexit]
638 L.sort(key=lambda item:item[1].index)
639 return [f for (f,i) in L]
640
641 @classmethod
642 def _exitfunc(cls):

Callers 1

_exitfuncMethod · 0.45

Calls 2

itemsMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected