reinhold-birkenfeld-nospam at wolke7.net
Fri Jun 10 21:56:30 CEST 2005
Donn Cave wrote:
>> Not according the the docs:
>> Also, for each of these variants, on Unix, cmd may be a
>> sequence, in which case arguments will be passed directly to
>> the program without shell intervention (as with os.spawnv()).
>> If cmd is a string it will be passed to the shell (as with
>> It's not exactly clear what "these variants" refer to, but I
>> read it as referring to all of the the os.popen functions.
>> Perhaps it only refers to os.popen?
> Right. The paragraphs seem a little scrambled. Note
> the use of "cmd" instead of "command" as the parameter
> is named for popen(). Also note "These methods do not
> make it possible to retrieve the return code from the
> child processes", after the popen() paragraph above tells
> you how to do it (using the better term "exit status".)
> Or one may look at the source.
FYI, I checked in a little fix to the docs which makes clear
what functions the paragraphs pertain to. Also, I changed
"return code" to "exit status".
More information about the Python-list