Message11884

Author jeff.allen
Recipients jeff.allen, mga792, psykiatris
Date 2018-04-07.08:10:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523088639.07.0.682650639539.issue2664@psf.upfronthosting.co.za>
In-reply-to
Content
return p.communicate(input)  <-------NOT fine. Maybe because it's trying to put something back in the stream.

Not really "back in the stream". It writes to the stdin of the subprocess.

Suppose on Jython you try essentially Mary's code, but with a command we've got (like the normal ping). Do you get the output you expect from p.communicate() ?

Now from p.communicate("\n"*10) ?

And on CPython 2?
History
Date User Action Args
2018-04-07 08:10:39jeff.allensetmessageid: <1523088639.07.0.682650639539.issue2664@psf.upfronthosting.co.za>
2018-04-07 08:10:39jeff.allensetrecipients: + jeff.allen, psykiatris, mga792
2018-04-07 08:10:39jeff.allenlinkissue2664 messages
2018-04-07 08:10:38jeff.allencreate