[Python-ideas] Previous item from iterator.
Mark Daoust
daoust.mj at gmail.com
Fri Apr 17 12:15:43 CEST 2015
If you have python code that really would benefit from iterating in
reverse, there already is the "__reversed__" special method, and "reversed"
builtin. The doc string for it says "Return a reverse iterator"
You guys probably already know about it. It just hadn't been mentioned, so
I thought I'd put it out there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150417/476a877d/attachment.html>
More information about the Python-ideas
mailing list