(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-popen2.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-popen2.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-time.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/genindex.html| ]]
|
Previous: 6.8 popen2 Up: 6.8 popen2 Next: 6.9 time
6.8.1 Popen3 and Popen4 Objects
Instances of the Popen3 and Popen4 classes have the following methods:
- poll ()
- Returns
-1 if child process hasn't completed yet, or its return code otherwise.
- wait ()
- Waits for and returns the return code of the child process.
The following attributes are also available:
- fromchild
- A file object that provides output from the child process. For Popen4 instances, this will provide both the standard output and standard error streams.
- tochild
- A file object that provides input to the child process.
- childerr
- Where the standard error from the child process goes is capturestderr was true for the constructor, or
None. This will always be None for Popen4 instances.
- pid
- The process ID of the child process.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-popen2.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-popen2.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-time.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/genindex.html| ]]
|
Previous: 6.8 popen2 Up: 6.8 popen2 Next: 6.9 time
See About this document... for information on suggesting changes.