[issue1677872] Efficient reverse line iterator

James Emerton report at bugs.python.org
Tue Apr 15 22:32:03 CEST 2014


James Emerton added the comment:

Attached is an implementation of BufferedReader.readprevline(), as suggested by Antoine.

At this point, it seems to be working but I would like to improve the tests when a single result spans multiple chunks. I would particularly like to ensure correct behaviour when a newline ends up as the last byte of a new chunk.

----------
nosy: +jemerton
Added file: http://bugs.python.org/file34894/readprevline-20140415.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1677872>
_______________________________________


More information about the Python-bugs-list mailing list