Message176918
Thorsten, the problem is that you are using line-based syntax. The code 'for buffer in f:' will read one line per iteration and put it to 'buffer'; for a file opened in binary mode, the iterator will always seek to the next b'\n'. Depending on the content of the file, python may have to read tons of data before the next b'\n' appears. |
|
Date |
User |
Action |
Args |
2012-12-04 15:04:43 | ebfe | set | recipients:
+ ebfe, pitrou, Thorsten.Simons |
2012-12-04 15:04:43 | ebfe | set | messageid: <1354633483.13.0.933947443916.issue16606@psf.upfronthosting.co.za> |
2012-12-04 15:04:43 | ebfe | link | issue16606 messages |
2012-12-04 15:04:42 | ebfe | create | |
|