Lukas Lueg added the comment:

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.

----------
nosy: +ebfe

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16606>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to