def generateElementsQNamed(list, name, uri):
    for n in list:
        if IElement.providedBy(n) and n.name == name and n.uri == uri:
            yield n
Inverting of filters using the ~ operator.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/xish/domish.py/generateElementsQNamed--crossover with--dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/filters/base.py/Filter.__invert__