Exemplo n.º 1
0
    def child_parsers(self):
        """Iterate over all the code objects nested within this one.

        The iteration includes `self` as its first value.

        """
        children = CodeObjects(self.code)
        return (ByteParser(self.text, code=c) for c in children)
Exemplo n.º 2
0
 def child_parsers(self):
     children = CodeObjects(self.code)
     return [ByteParser(code=c, text=self.text) for c in children]