problems with using the Compiler module

S

stephene

Hi

I am wanting to create a simple code inspector and the Compiler module
seems to be a good starting point. However there seems to be either a
problem with the module, or with the way that I'm using it.

once I get the AST, I want to traverse the tree pulling out certain
information. For this I wanted to use node.getType() to deal with a
specific type of node correctly.

But all that node.getType() ever returns is None. Is this method
depreciated? If not then why will it only return None?

Also, does anyone know of any extensions to the Compiler module to simplify
certain actions, such as searching for all functions called within a
function?

Thanks for any help
Stephen Emslie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top