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 <rep...@bugs.python.org> <http://bugs.python.org/issue1677872> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com