Issue 918710: popen2 returns (out, in) not (in, out) (original) (raw)

Issue918710

Created on 2004-03-18 12:44 by yotam, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg20254 - (view) Author: Yotam Medini (yotam) * Date: 2004-03-18 12:44
http://python.org/doc/current/lib/os-newstreams.html#l2h-1379 says: popen2( cmd[, mode[, bufsize]]) Executes cmd as a sub-process. Returns the file objects (child_stdin, child_stdout). But for me it actually returns (child-output, child-input). Or... is it a semantci issue? that is child_stdin - is "the input _from_ child?" Anyway - it is confusing.
msg20255 - (view) Author: Aaron Brady (insomnike) Date: 2004-06-05 16:44
Logged In: YES user_id=1057404 The above is not-a-bug, but this documentation patch below might serve to remove any confusion. ### --- libos.tex- Sat Jun 5 17:28:52 2004 +++ libos.tex Sat Jun 5 17:32:40 2004 @@ -384,6 +384,10 @@ \versionadded{2.0} \end{funcdesc} +It should be noted that \code{\var{child_stdin}, \var{child_stdout}, and +\var{child_stderr}} are named from the child process' point of view, i.e. the +stdin of the child. + This functionality is also available in the \refmodule{popen2} module using functions of the same names, but the return values of those functions have a different order. ###
msg20256 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-06-05 19:25
Logged In: YES user_id=11375 Paragraph added to docs; closing. Thanks!
History
Date User Action Args
2022-04-11 14:56:03 admin set github: 40045
2004-03-18 12:44:38 yotam create