Mark Russell mark_t_russ...@users.sourceforge.net added the comment:
I'll do a C version of the patch (hopefully in the next week or so).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677872
New submission from Mark Russell:
This patch adds documentation for the reversed() builtin and
__reversed__() special method.
--
components: Documentation
files: reverse-2.6-docs.diff
messages: 58369
nosy: mark_t_russell
severity: normal
status: open
title: Documentation patch
Mark Russell added the comment:
As Guido requested I've split off the generic reversed() and __reversed__()
doc additions to this patch against 2.6: http://bugs.python.org/issue1582
The I/O error from reversed(open(/etc/passwd)) was caused by the inner
TextIOWrapper calling close() (via
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__
Mark Russell added the comment:
Sure - I'll do an updated patch at the weekend.
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1677872
_
___
Python-bugs-list mailing list