Top-rated recipes by Karl Dickman http://code.activestate.com/recipes/users/4172760/top/2010-01-09T22:46:42-08:00ActiveState Code RecipesTwo-finger iterator (Python) 2010-01-09T15:06:51-08:00Karl Dickmanhttp://code.activestate.com/recipes/users/4172760/http://code.activestate.com/recipes/576997-two-finger-iterator/ <p style="color: grey"> Python recipe 576997 by <a href="/recipes/users/4172760/">Karl Dickman</a> . </p> <p>Sometimes it's useful to iterate through a series of items, looking at an item and the next one.</p> RFC 822-style parser (Python) 2010-01-09T22:46:42-08:00Karl Dickmanhttp://code.activestate.com/recipes/users/4172760/http://code.activestate.com/recipes/576996-rfc-822-style-parser/ <p style="color: grey"> Python recipe 576996 by <a href="/recipes/users/4172760/">Karl Dickman</a> (<a href="/recipes/tags/data/">data</a>, <a href="/recipes/tags/formats/">formats</a>). Revision 7. </p> <p>In <em>The Art of Unix Programming</em>, Eric S. Raymond describes a data file metaformat based on RFC 822. [http://www.faqs.org/docs/artu/ch05s02.html#id2902039] This is a simple parser for that format.</p>