Embedded python console and FILE* in python 3.2
F L
mephisto_9000 at hotmail.com
Mon Aug 8 14:06:48 EDT 2011
> If you use the same workflow as you do currently, it won't
You're right it shouldn't cause a blocking call.
> Come to think of it, you might as well just use StringIO.
Yes I could probably replace std{in, out, err} with stringIO objects and retrieve their contents throughthe api.
I'll look into it, thank again.
F.L.
> Date: Mon, 8 Aug 2011 19:52:14 +0200
> From: t at jollybox.de
> To: python-list at python.org
> Subject: Re: Embedded python console and FILE* in python 3.2
>
> On 08/08/11 19:44, Thomas Jollans wrote:
>
> >
> > 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.
> --
> http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110808/58a9fad8/attachment-0001.html>
More information about the Python-list
mailing list