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

Function _addHandlerRef

Lib/logging/__init__.py:902–907  ·  view source on GitHub ↗

Add a handler to the internal cleanup list using a weak reference.

(handler)

Source from the content-addressed store, hash-verified

900 pass
901
902def _addHandlerRef(handler):
903 """
904 Add a handler to the internal cleanup list using a weak reference.
905 """
906 with _lock:
907 _handlerList.append(weakref.ref(handler, _removeHandlerRef))
908
909
910def getHandlerByName(name):

Callers 1

__init__Method · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…