def __init__(self, key_funcs, data):
        """
        Constructor
        :param key_funcs: list of OrderingDirection instances in order of
        primary key
        --> less important keys
        :param data: data as iterable
        """
        if key_funcs is None:
            raise NullArgumentError(u"key_funcs argument cannot be None")
        if not isinstance(key_funcs, list):
            raise TypeError(u"key_funcs should be a list instance")
        self._key_funcs = [
            f for f in key_funcs if isinstance(f, OrderingDirection)
        ]
        super(SortedEnumerable, self).__init__(data)
def __init__ ( self , key_funcs , data ) : if key_funcs is None : raise NullArgumentError ( u"key_funcs argument cannot be None" ) if not isinstance ( key_funcs , list ) : raise TypeError ( u"key_funcs should be a list instance" ) self . _key_funcs = [ f for f in key_funcs if isinstance ( f , OrderingDirection ) ] super ( SortedEnumerable , self ) . __init__ ( data )
Constructor
        :param key_funcs: list of OrderingDirection instances in order of
        primary key
        --> less important keys
        :param data: data as iterable