soupy.py
def exclude(self, func=None):
        """
        Return a new Collection excluding some items

        Parameters:

            func : function(Node) -> Scalar

                A function that, when called on each item
                in the collection, returns a boolean-like
                value. If no function is provided, then
                truthy items will be removed.

        Returns:

            A new Collection consisting of the items
            where bool(func(item)) == False
        """
        func = _make_callable(func)
        inverse = lambda x: not func(x)
        return self.filter(inverse)
def exclude(self, func=None):
        func = _make_callable(func)
        inverse = lambda x: not func(x)
        return self.filter(inverse)
def exclude ( self , func = None ) : func = _make_callable ( func ) inverse = lambda x : not func ( x ) return self . filter ( inverse )
Return a new Collection excluding some items

        Parameters:

            func : function(Node) -> Scalar

                A function that, when called on each item
                in the collection, returns a boolean-like
                value. If no function is provided, then
                truthy items will be removed.

        Returns:

            A new Collection consisting of the items
            where bool(func(item)) == False
Return a new Collection excluding some items