Re: [Python-ideas] Previous item from iterator.
17 Apr
2015
17 Apr
'15
5: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.
3294
Age (days ago)
3294
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Daoust