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 ebfe
Recipients Thorsten.Simons, ebfe, pitrou
Date 2012-12-04.15:04:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354633483.13.0.933947443916.issue16606@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-12-04 15:04:43ebfesetrecipients: + ebfe, pitrou, Thorsten.Simons
2012-12-04 15:04:43ebfesetmessageid: <1354633483.13.0.933947443916.issue16606@psf.upfronthosting.co.za>
2012-12-04 15:04:43ebfelinkissue16606 messages
2012-12-04 15:04:42ebfecreate