homepage

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:13techtoniksetrecipients: + techtonik
2012年05月21日 20:33:13techtoniksetmessageid: <1337632393.15.0.575365490644.issue14872@psf.upfronthosting.co.za>
2012年05月21日 20:33:12techtoniklinkissue14872 messages
2012年05月21日 20:33:12techtonikcreate

AltStyle によって変換されたページ (->オリジナル) /