Most viewed recipes by Karl Dickman Code RecipesRFC 822-style parser (Python) 2010-01-09T22:46:42-08:00Karl Dickman <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. [] This is a simple parser for that format.</p> Two-finger iterator (Python) 2010-01-09T15:06:51-08:00Karl Dickman <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>