Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
debd3710
Commit
debd3710
authored
Jun 10, 2005
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify docs about os.popen[234].
parent
e537d6e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/lib/libos.tex
Doc/lib/libos.tex
+2
-2
No files found.
Doc/lib/libos.tex
View file @
debd3710
...
...
@@ -354,7 +354,7 @@ Availability: Macintosh, \UNIX, Windows.
\end{funcdesc}
For each of the
se
\function
{
popen()
}
variants, if
\var
{
bufsize
}
is
For each of the
following
\function
{
popen()
}
variants, if
\var
{
bufsize
}
is
specified, it specifies the buffer size for the I/O pipes.
\var
{
mode
}
, if provided, should be the string
\code
{
'b'
}
or
\code
{
't'
}
; on Windows this is needed to determine whether the file
...
...
@@ -366,7 +366,7 @@ which case arguments will be passed directly to the program without shell
intervention (as with
\function
{
os.spawnv()
}
). If
\var
{
cmd
}
is a string it will
be passed to the shell (as with
\function
{
os.system()
}
).
These methods do not make it possible to retrieve the
return code
from
These methods do not make it possible to retrieve the
exit status
from
the child processes. The only way to control the input and output
streams and also retrieve the return codes is to use the
\class
{
Popen3
}
and
\class
{
Popen4
}
classes from the
\refmodule
{
popen2
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment