Message 161294 - Python tracker
Message161294
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 | techtonik |
|---|---|
| Recipients | techtonik |
| Date | 2012-05-21.20:33:12 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1337632393.15.0.575365490644.issue14872@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
There is no way to write a program in Python capable to process large/unlimited output coming from a subprocess stream without deadlocks. http://docs.python.org/library/subprocess.html#subprocess.Popen.communicate "Note The data read is buffered in memory, so do not use this method if the data size is large or unlimited." http://docs.python.org/library/subprocess.html#subprocess.Popen.stdin http://docs.python.org/library/subprocess.html#subprocess.Popen.stdout http://docs.python.org/library/subprocess.html#subprocess.Popen.stderr "Warning Use communicate() rather than .stdin.write, .stdout.read or .stderr.read to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process." So, what should I use? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-05-21 20:33:13 | techtonik | set | recipients: + techtonik |
| 2012-05-21 20:33:13 | techtonik | set | messageid: <1337632393.15.0.575365490644.issue14872@psf.upfronthosting.co.za> |
| 2012-05-21 20:33:12 | techtonik | link | issue14872 messages |
| 2012-05-21 20:33:12 | techtonik | create | |