[Tutor] iteritems() for a list

Tim Johnson tim@johnsons-web.com
Sun Jun 29 17:25:30 2003


Hello All:
I use an object that has a list as a major component.

I would like to iterate through that list
2 items at a time like dict.iteritems().

I believe that python2+ provides for custom
iterators.
    
If I'm correct:
Could someone point me to some code examples
to help me get started on this?

Thanks!
regards
-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com
      http://www.johnsons-web.com