[Python-porting] "compiler" module in Python3k

"Martin v. Löwis" martin at v.loewis.de
Sat Nov 6 16:55:13 CET 2010


> I am currently working on porting a library over to Py3k and I am
> required to replace the compiler module as it does not exist in 3.1. I
> tried replacing the compiler module with the ast module, however that
> does not meet my requirements.
> 
> I need an analogue for compiler.parse.getChildren in Python3k. Any
> ideas? Thanks a lot.

Can you please generalize a little more what this code is trying to
achieve? Most likely, the _ast module will help, perhaps also lib2to3.

Regards,
Martin


More information about the Python-porting mailing list