<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
> If you use the same workflow as you do currently, it won't<div><br></div><div>You're right it shouldn't cause a blocking call.</div><div><br></div><div>> Come to think of it, you might as well just use StringIO.</div><div><br></div><div>Yes I could probably replace std{in, out, err} with stringIO objects and retrieve their contents through</div><div>the api.</div><div><br></div><div>I'll look into it, thank again.<br><br>F.L.<br><br><div>> Date: Mon, 8 Aug 2011 19:52:14 +0200<br>> From: t@jollybox.de<br>> To: python-list@python.org<br>> Subject: Re: Embedded python console and FILE* in python 3.2<br>> <br>> On 08/08/11 19:44, Thomas Jollans wrote:<br>> <br>> > <br>> > 1. Feed input to your custom stdin object, which will buffer the code.<br>> > 2. Call PyRun_IteractiveOne - it will read from your object, which will<br>> >    return the buffer contents.<br>> > 3. The result is somehow handled by custom stdout and stderr objects.<br>> > <br>> <br>> Come to think of it, you might as well just use StringIO.<br>> -- <br>> http://mail.python.org/mailman/listinfo/python-list<br></div></div>                                      </div></body>
</html>