compiler module

Simon Burton simonb at webone.com.au
Mon Mar 17 03:27:46 CET 2003


On Mon, 17 Mar 2003 12:43:51 +1100, Simon Burton wrote:

> 
> Am working on some code that reads python source to
> find/manipulate the "block structure" for a GUI/IDE display.
> 
> "Block structure" almost equals indentation level, but not quite.
> So, am using the compiler module to find the blocks (class, def, if,
> for...?)
> 

Looks like tokenizer/tabnanny will do the job.
However, I am still interested in any code that uses the compiler module.

Simon Burton.





More information about the Python-list mailing list