

def _textNodes(self, recurse=False):
    if (self.text and (getattr(self, 'xValid', 0) != VALID_NO_CONTENT)):
        (yield self.text)
    for c in self.iterchildren():
        if (recurse and isinstance(c, ModelObject)):
            for nestedText in c._textNodes(self):
                (yield nestedText)
        if (c.tail and (getattr(self, 'xValid', 0) != VALID_NO_CONTENT)):
            (yield c.tail)

dataset/ETHPy150Open Arelle/Arelle/arelle/ModelObject.py ModelObject._textNodes/VarMisuse@76/95 `recurse`->`self`