Re: [Python-ideas] Previous item from iterator.
April 17, 2015
10:15 a.m.
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.
4105
Age (days ago)
4105
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Daoust