Embedded python console and FILE* in python 3.2

Thomas Jollans t at jollybox.de
Mon Aug 8 19:52:14 CEST 2011

On 08/08/11 19:44, Thomas Jollans wrote:
> If you use the same workflow as you do currently, it won't:
> 1. Feed input to your custom stdin object, which will buffer the code.
> 2. Call PyRun_IteractiveOne - it will read from your object, which will
>    return the buffer contents.
> 3. The result is somehow handled by custom stdout and stderr objects.

Come to think of it, you might as well just use StringIO.

More information about the Python-list mailing list