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

Method _select_for_exit

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

Source from the content-addressed store, hash-verified

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

Callers 1

_exitfuncMethod · 0.80

Calls 2

itemsMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected