def __init__(self, callback,
                 args=None, kwargs=None, details_filter=None,
                 weak=False):
        """Initialize members

        :param callback: callback function
        :param details_filter: a callback that will be called before the
                               actual callback that can be used to discard
                               the event (thus avoiding the invocation of
                               the actual callback)
        :param args: non-keyworded arguments
        :type args: list/iterable/tuple
        :param kwargs: key-value pair arguments
        :type kwargs: dictionary
        :param weak: whether the callback provided is referenced via a
                     weak reference or a strong reference
        :type weak: bool
        """
        self._uuid = uuidutils.generate_uuid()
        self._callback = callback
        self._details_filter = details_filter
        self._weak = weak
        if not args:
            self._args = ()
        else:
            if not isinstance(args, tuple):
                self._args = tuple(args)
            else:
                self._args = args
        if not kwargs:
            self._kwargs = frozendict()
        else:
            self._kwargs = frozendict(kwargs)
def __init__ ( self , callback , args = None , kwargs = None , details_filter = None , weak = False ) : self . _uuid = uuidutils . generate_uuid ( ) self . _callback = callback self . _details_filter = details_filter self . _weak = weak if not args : self . _args = ( ) else : if not isinstance ( args , tuple ) : self . _args = tuple ( args ) else : self . _args = args if not kwargs : self . _kwargs = frozendict ( ) else : self . _kwargs = frozendict ( kwargs )
Initialize members

        :param callback: callback function
        :param details_filter: a callback that will be called before the
                               actual callback that can be used to discard
                               the event (thus avoiding the invocation of
                               the actual callback)
        :param args: non-keyworded arguments
        :type args: list/iterable/tuple
        :param kwargs: key-value pair arguments
        :type kwargs: dictionary
        :param weak: whether the callback provided is referenced via a
                     weak reference or a strong reference
        :type weak: bool