Popular recipes by Christophe Simonis http://code.activestate.com/recipes/users/4166953/2009-01-24T12:41:53-08:00ActiveState Code RecipesChangeDirectory context manager (Python)
2009-01-24T12:41:53-08:00Christophe Simonishttp://code.activestate.com/recipes/users/4166953/http://code.activestate.com/recipes/576620-changedirectory-context-manager/
<p style="color: grey">
Python
recipe 576620
by <a href="/recipes/users/4166953/">Christophe Simonis</a>
(<a href="/recipes/tags/change/">change</a>, <a href="/recipes/tags/chdir/">chdir</a>, <a href="/recipes/tags/context_manager/">context_manager</a>, <a href="/recipes/tags/directory/">directory</a>).
Revision 2.
</p>
<p>A context manager that handle a temporary change of the working directory</p>
flatten sequences (Python)
2008-09-05T08:41:49-07:00Christophe Simonishttp://code.activestate.com/recipes/users/4166953/http://code.activestate.com/recipes/576487-flatten-sequences/
<p style="color: grey">
Python
recipe 576487
by <a href="/recipes/users/4166953/">Christophe Simonis</a>
(<a href="/recipes/tags/flatten/">flatten</a>, <a href="/recipes/tags/list/">list</a>).
Revision 3.
</p>
<p>A simple method to flatten a sequence (list, tuple...)</p>