[Tutor] Accessing next and previous items during iteration

Kent Johnson kent37 at tds.net
Sun Dec 18 22:11:44 CET 2005

Ed Singleton wrote:
> Is it possible to access the next and previous items during an iteration?

This just came up on c.l.python. Bengt Richter has a nice generator-based solution.


More information about the Tutor mailing list