Re: parsing ast nodes help to get callfunc values.

2007-10-30 Thread Peter Otten
Glich wrote: > If some one could show me how to use something called "visitor"? import compiler module = """ def fun1(): print "Hi" fun2() fun4() def fun2(): pass def fun4(): pass fun1() fun3(fun2()) """ class Visitor: def visitCallFunc(self, node): print nod

parsing ast nodes help to get callfunc values.

2007-10-30 Thread Glich
""" Hi! This is my code so far: This code analyzes a python file. How can I separate CallFunc from the est of the ast node? file.py is as follows: _ def fun1(): print "Hi" fun2() fun4() def fun2(): pass def fun4(): pass fun1() _