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

All Samples(1)  |  Call(0)  |  Derive(1)  |  Import(0)
A `NodeVisitor` subclass that walks the abstract syntax tree
and allows modification of nodes.

The `NodeTransformer` will walk the AST and use the return value
of the visitor methods to replace or remove the old node. If the
return value of the visitor method is `None`, the node will be
removed from its location, otherwise it is replaced with the
return value. The return value may be the original node in which
case no replacement takes place.

src/s/n/SNAKES-0.9.17/snakes/lang/__init__.py   SNAKES(Download)
class Renamer (ast.NodeTransformer) :
    def __init__ (self, map_names) :
        self.map = [map_names]
    def visit_ListComp (self, node) :