[issue1677872] Efficient reverse line iterator

Mark Russell report at bugs.python.org
Sun Dec 9 21:36:12 CET 2007


Mark Russell added the comment:

Here's an updated version of the patch.  Changes:

    - Updated to work against current py3k branch (r59441)
    - Added support for universal newlines
    - Added unit tests
    - Added docs

The patch includes documentation for reversed() and __reversed__() (in the 
library and reference manuals respectively) which are independent of the 
reverse lines iterator - I can split those out to separate patch if needed.

I also updated the expected output from test_profile and test_cProfile, 
although I think a better fix would be to filter out the stdlib-related stuff 
from the expected output, as currently these tests break whenever io.py is 
changed.

Added file: http://bugs.python.org/file8902/reverse-file-iterator-20071209.diff

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1677872>
_____________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: reverse-file-iterator-20071209.diff
Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071209/e7baa8d1/attachment.txt 


More information about the Python-bugs-list mailing list