def generateOnlyInterface(list, int):
    for n in list:
        if int.providedBy(n):
            yield n
Filters items in a list by class
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/xish/domish.py/generateOnlyInterface