Popular recipes tagged "container" but not "advanced_data_structure"http://code.activestate.com/recipes/tags/container-advanced_data_structure/2011-12-23T22:10:38-08:00ActiveState Code RecipesRecursively walk Python objects (Python)
2011-12-23T22:10:38-08:00Yaniv Akninhttp://code.activestate.com/recipes/users/4180246/http://code.activestate.com/recipes/577982-recursively-walk-python-objects/
<p style="color: grey">
Python
recipe 577982
by <a href="/recipes/users/4180246/">Yaniv Aknin</a>
(<a href="/recipes/tags/container/">container</a>, <a href="/recipes/tags/recursive/">recursive</a>, <a href="/recipes/tags/recursive_iterator/">recursive_iterator</a>, <a href="/recipes/tags/walk/">walk</a>).
Revision 2.
</p>
<p>A small function that walks over pretty much any Python object and yields the objects contained within (if any) along with the path to reach them. I wrote it and am using it to validate a deserialized data-structure, but you can probably use it for many things.</p>
Minimal Dependency Injection Container (Python)
2010-06-05T13:50:03-07:00Alan Franzonihttp://code.activestate.com/recipes/users/4169882/http://code.activestate.com/recipes/577254-minimal-dependency-injection-container/
<p style="color: grey">
Python
recipe 577254
by <a href="/recipes/users/4169882/">Alan Franzoni</a>
(<a href="/recipes/tags/container/">container</a>, <a href="/recipes/tags/control/">control</a>, <a href="/recipes/tags/dependency/">dependency</a>, <a href="/recipes/tags/di/">di</a>, <a href="/recipes/tags/dic/">dic</a>, <a href="/recipes/tags/injection/">injection</a>, <a href="/recipes/tags/inversion/">inversion</a>, <a href="/recipes/tags/ioc/">ioc</a>, <a href="/recipes/tags/iocc/">iocc</a>).
</p>
<p>An example of a minimal dependency injection ( aka Inversion of Control ) container for Python.</p>