Message11872
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? |
|
Date |
User |
Action |
Args |
2018-04-04 05:47:47 | psykiatris | set | messageid: <1522820867.99.0.467229070634.issue2664@psf.upfronthosting.co.za> |
2018-04-04 05:47:47 | psykiatris | set | recipients:
+ psykiatris, mga792 |
2018-04-04 05:47:47 | psykiatris | link | issue2664 messages |
2018-04-04 05:47:47 | psykiatris | create | |
|