[Python-Dev] Catching "return" and "return expr" at compile time

Mark Hammond mhammond@skippinet.com.au
Thu, 9 Sep 1999 08:03:07 +1000

> Can we start/settle on a Python-based source code framework
> for this sort of
> thing?  Ideally, I'd like to see a framework that brings the
> parser module's
> output up to a level where mere mortals like me can reason
> about Python
> code.

Actually, I struggled with this a _lot_, then found that P2C has a module
called "transform" which flattens the parse tree down to something I can
understand (which is good :-)

I could simply attach it, but it is grafted to P2C IIRC.  If there is
interest I will rip it out...