MCPcopy Index your code
hub / github.com/RustPython/RustPython / _select_for_exit

Method _select_for_exit

Lib/weakref.py:535–539  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

533
534 @classmethod
535 def _select_for_exit(cls):
536 # Return live finalizers marked for exit, oldest first
537 L = [(f,i) for (f,i) in cls._registry.items() if i.atexit]
538 L.sort(key=lambda item:item[1].index)
539 return [f for (f,i) in L]
540
541 @classmethod
542 def _exitfunc(cls):

Callers 1

_exitfuncMethod · 0.80

Calls 2

itemsMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected