Most viewed recipes by Maxime Fontenier http://code.activestate.com/recipes/users/4172150/views/2011-04-06T20:29:46-07:00ActiveState Code RecipesSimple primes generator (Python)
2009-11-04T06:52:06-08:00Maxime Fontenierhttp://code.activestate.com/recipes/users/4172150/http://code.activestate.com/recipes/576948-simple-primes-generator/
<p style="color: grey">
Python
recipe 576948
by <a href="/recipes/users/4172150/">Maxime Fontenier</a>
(<a href="/recipes/tags/any/">any</a>, <a href="/recipes/tags/generator/">generator</a>, <a href="/recipes/tags/numbers/">numbers</a>, <a href="/recipes/tags/primes/">primes</a>).
</p>
<p>Simple prime generator. </p>
<p>I write it as a sample usage of the any function.</p>
Path entire split & commonprefix (Python)
2011-04-06T20:29:46-07:00Maxime Fontenierhttp://code.activestate.com/recipes/users/4172150/http://code.activestate.com/recipes/577016-path-entire-split-commonprefix/
<p style="color: grey">
Python
recipe 577016
by <a href="/recipes/users/4172150/">Maxime Fontenier</a>
(<a href="/recipes/tags/commonprefix/">commonprefix</a>, <a href="/recipes/tags/path/">path</a>, <a href="/recipes/tags/split/">split</a>).
Revision 5.
</p>
<p>This recipe is a kind of extension to os.path
It offers an entire split function and a true commonprefix for paths.</p>