parameters: (handler)
docstring: Add a handler to the internal cleanup list using a weak reference.
docstring_summary: Add a handler to the internal cleanup list using a weak reference.
docstring_tokens: Add a handler to the internal cleanup list using a weak reference .
function: def _addHandlerRef(handler):
      """
      Add a handler to the internal cleanup list using a weak reference.
      """
      _acquireLock()
      try:
          _handlerList.append(weakref.ref(handler, _removeHandlerRef))
      finally:
          _releaseLock()
function_tokens: def _addHandlerRef ( handler ) : _acquireLock ( ) try : _handlerList . append ( weakref . ref ( handler , _removeHandlerRef ) ) finally : _releaseLock ( )