Converting _node* to a Code object?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun Apr 1 10:20:41 CEST 2007


En Sun, 01 Apr 2007 01:35:59 -0300, Brendon Costa <brendon at christian.net>  
escribió:

> How do i convert a _node* object returned from:
> PyParser_SimpleParseStringFlagsFilename()
>
> into a code object i can use as a module to import with:
> PyImport_ExecCodeModule()

Using PyNode_Compile. But why don't you use Py_CompileXXX instead?
And look into import.c, maybe there is something handy.

-- 
Gabriel Genellina




More information about the Python-list mailing list