(self, callable_obj: UserListener, argsInfo: CallArgsInfo, curriedArgs: Mapping[str, Any] = None,
                 onDead: Callable[[Listener], None] = None)
Use callable_obj as a listener of topicName. The argsInfo is the
        return value from a Validator, ie an instance of callables.CallArgsInfo.
        If given, the onDead will be called with self as parameter, if/when
        callable_obj gets garbage collected (callable_obj is held only by weak
        reference).
Use callable_obj as a listener of topicName. The argsInfo is the
        return value from a Validator, ie an instance of callables.CallArgsInfo.
        If given, the onDead will be called with self as parameter, if/when
        callable_obj gets garbage collected (callable_obj is held only by weak
        reference).
Use callable_obj as a listener of topicName . The argsInfo is the return value from a Validator ie an instance of callables . CallArgsInfo . If given the onDead will be called with self as parameter if / when callable_obj gets garbage collected ( callable_obj is held only by weak reference ) .
def __init__(self, callable_obj: UserListener, argsInfo: CallArgsInfo, curriedArgs: Mapping[str, Any] = None,
                 onDead: Callable[[Listener], None] = None):
        """
        Use callable_obj as a listener of topicName. The argsInfo is the
        return value from a Validator, ie an instance of callables.CallArgsInfo.
        If given, the onDead will be called with self as parameter, if/when
        callable_obj gets garbage collected (callable_obj is held only by weak
        reference).
        """
        # set call policies
        self.acceptsAllKwargs = argsInfo.acceptsAllKwargs
        self.curriedArgs = curriedArgs

        self._autoTopicArgName = argsInfo.autoTopicArgName
        self._callable = getWeakRef(callable_obj, self.__notifyOnDead)
        self.__onDead = onDead

        # save identity now in case callable dies:
        name, mod = getID(callable_obj)  #
        self.__nameID = name
        self.__module = mod
        self.__id = str(id(callable_obj))[-4:]  # only last four digits of id
        self.__hash = hash(callable_obj)
def __init__ ( self , callable_obj : UserListener , argsInfo : CallArgsInfo , curriedArgs : Mapping [ str , Any ] = None , onDead : Callable [ [ Listener ] , None ] = None ) : # set call policies self . acceptsAllKwargs = argsInfo . acceptsAllKwargs self . curriedArgs = curriedArgs self . _autoTopicArgName = argsInfo . autoTopicArgName self . _callable = getWeakRef ( callable_obj , self . __notifyOnDead ) self . __onDead = onDead # save identity now in case callable dies: name , mod = getID ( callable_obj ) # self . __nameID = name self . __module = mod self . __id = str ( id ( callable_obj ) ) [ - 4 : ] # only last four digits of id self . __hash = hash ( callable_obj )