Re: Converting _node* to a Code object?

2007-04-01 Thread Brendon Costa
Gabriel Genellina wrote: > En Sun, 01 Apr 2007 01:35:59 -0300, Brendon Costa <[EMAIL PROTECTED]> > 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

Re: Converting _node* to a Code object?

2007-04-01 Thread Gabriel Genellina
En Sun, 01 Apr 2007 01:35:59 -0300, Brendon Costa <[EMAIL PROTECTED]> 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 do

Converting _node* to a Code object?

2007-03-31 Thread Brendon Costa
Hi All, I have an application with an embedded python interpreter and i need to get the embedded interpreter to "import" strangely named files as python modules. Anyhow the simple part of the question is: How do i convert a _node* object returned from: PyParser_SimpleParseStringFlagsFilename()