def nin(self, value): """ Finds all documents where the attribute is NOT in the given list. Look at ``in_`` for an example. """ self._desc = "%s not in %s" % (self._name, value) self._predicate = P.nin(self._name, value) return self
def nin_list(self, value): """ Finds all documents where the attribute is NOT in the given **list**. Look at ``in_list`` for an explanation. """ _set = list(value) self._desc = "%s not in set(%s)" % (self._name, _set) self._predicate = P.nin(self._name, _set) return self