Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
mk_ast_get_children()

        def mk_ast_get_children (ast_module):
    """mk_ast_get_children()"""
    def ast_get_children (node):
        return [val for val in node.__dict__.values()
                if isinstance(val, ast_module.AST) or
                (type(val) in (list, tuple) and len(val) > 0 and
                 isinstance(val[0], ast_module.AST))]
    return ast_get_children
        


src/m/y/mython-HEAD/basil/lang/mython/MyCodeGen.py   mython(Download)
# ______________________________________________________________________
 
myast_get_children = ASTUtils.mk_ast_get_children(myfront_ast)
 
class ASTVisitor (object):