popen2: Broken pipe for large files
milos.prudek at tiscali.cz
Mon Jun 10 15:18:56 EDT 2002
In Python 2.1, is there a size limit when creating pipes with popen2() ?
The following function fails because of a broken pipe if the size of T
is larger than 21000:
cmd='file -b -'
X = r.read().split()
The error message:
Traceback (most recent call last):
File "./p26.py", line 33, in ?
IOError: [Errno 32] Broken pipe
I tried to specify buffer size 1000000, but it did not help.
The only possible solution so far is to change the first line:
More information about the Python-list