Re: parsing python code

2007-12-05 Thread Kay Schluehr
On Dec 5, 6:02 pm, "Ryan Krauss" <[EMAIL PROTECTED]> wrote: > I need to parse a Python file by breaking it into blocks matching > indentation levels so that function definitions, for loops, and > classes are kept together as blocks. For example, if I have something > like > > from scipy import* >

Re: parsing python code

2007-12-05 Thread Gabriel Genellina
En Wed, 05 Dec 2007 14:02:35 -0300, Ryan Krauss <[EMAIL PROTECTED]> escribió: > I need to parse a Python file by breaking it into blocks matching > indentation levels so that function definitions, for loops, and > classes are kept together as blocks. [...] > > I think the parser module should e