Popular recipes by Wade Leftwich http://code.activestate.com/recipes/users/98656/2008-02-20T18:57:43-08:00ActiveState Code RecipesPage through iterable N items at a time (Python)
2008-02-20T18:57:43-08:00Wade Leftwichhttp://code.activestate.com/recipes/users/98656/http://code.activestate.com/recipes/546526-page-through-iterable-n-items-at-a-time/
<p style="color: grey">
Python
recipe 546526
by <a href="/recipes/users/98656/">Wade Leftwich</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
Revision 2.
</p>
<p>Simple generator accepts an iterable L and an integer N and yields a series of sub-generators, each of which will in turn yield N items from L.</p>
Http client to POST using multipart/form-data (Python)
2002-08-23T07:56:39-07:00Wade Leftwichhttp://code.activestate.com/recipes/users/98656/http://code.activestate.com/recipes/146306-http-client-to-post-using-multipartform-data/
<p style="color: grey">
Python
recipe 146306
by <a href="/recipes/users/98656/">Wade Leftwich</a>
(<a href="/recipes/tags/web/">web</a>).
</p>
<p>A scripted web client that will post data to a site as if from a form using ENCTYPE="multipart/form-data". This is typically used to upload files, but also gets around a server's (e.g. ASP's) limitation on the amount of data that can be accepted via a standard POST (application/x-www-form-urlencoded).</p>