(obj_ref)
Helper function for weakref.finalize() that dereferences a weakref
    to an object and calls its _do_finalize_object() method if the object
    is still alive. Does nothing otherwise.

    Returns: None (implicit)

    Arguments:
    * obj_ref -- weakref to an object
Helper function for weakref.finalize() that dereferences a weakref
    to an object and calls its _do_finalize_object() method if the object
    is still alive. Does nothing otherwise.
Helper function for weakref . finalize () that dereferences a weakref to an object and calls its _do_finalize_object () method if the object is still alive . Does nothing otherwise .
def _do_finalize_object_ref(obj_ref):
    """Helper function for weakref.finalize() that dereferences a weakref
    to an object and calls its _do_finalize_object() method if the object
    is still alive. Does nothing otherwise.

    Returns: None (implicit)

    Arguments:
    * obj_ref -- weakref to an object
    """
    obj = obj_ref()
    if obj is not None:
        # else object disappeared
        obj._do_finalize_object()
def _do_finalize_object_ref ( obj_ref ) : obj = obj_ref ( ) if obj is not None : # else object disappeared obj . _do_finalize_object ( )