Message11872

Author psykiatris
Recipients mga792, psykiatris
Date 2018-04-04.05:47:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522820867.99.0.467229070634.issue2664@psf.upfronthosting.co.za>
In-reply-to
Content
Mary, I read up on the documentation for the subprocess module, and learned a couple of things:

PIPE indicates that a
    new pipe to the child should be created.

stdin
        If the stdin argument is PIPE, this attribute is a file object
        that provides input to the child process.  Otherwise, it is None.
======
That being said, when I debugged your code, both PIPE and stdin were returning -1. So, I manually passed a string and a file via PIPE, and stdin is still closing the stream., apparently, with a obscure IOError.

On a side note, Jeff or Jim, i notieced that subprocess does a test for jython, it sets the stdin, stdout, and stderr to None. Is that the expected behavior?
History
Date User Action Args
2018-04-04 05:47:47psykiatrissetmessageid: <1522820867.99.0.467229070634.issue2664@psf.upfronthosting.co.za>
2018-04-04 05:47:47psykiatrissetrecipients: + psykiatris, mga792
2018-04-04 05:47:47psykiatrislinkissue2664 messages
2018-04-04 05:47:47psykiatriscreate