This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Yclept.Nemo
Recipients Yclept.Nemo, docs@python
Date 2016-05-01.04:32:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462077137.11.0.0338937138998.issue26897@psf.upfronthosting.co.za>
In-reply-to
Content
From: https://docs.python.org/dev/library/subprocess.html#popen-constructor

"..., an existing file descriptor (a positive integer), an existing file object, and None."

It should be made clear that the file object must be backed by an operating system file, i.e. must have a valid file descriptor.

As it stands, the documentation suggests implicit concurrency: that any file object can be used, and on read/write from the subprocess/OS arbitrary python code will be executed, i.e. the python interpreter is pre-empted or python spawns a hidden I/O thread.

Anyway, I'm pretty sure subprocess.Popen() just redirects the forked process' stdout/stdin/stderr to the file descriptors from the provided file object.
History
Date User Action Args
2016-05-01 04:32:17Yclept.Nemosetrecipients: + Yclept.Nemo, docs@python
2016-05-01 04:32:17Yclept.Nemosetmessageid: <1462077137.11.0.0338937138998.issue26897@psf.upfronthosting.co.za>
2016-05-01 04:32:16Yclept.Nemolinkissue26897 messages
2016-05-01 04:32:15Yclept.Nemocreate