Popular recipes tagged "meta:score=12"http://code.activestate.com/recipes/tags/meta:score=12/2013-01-17T09:28:24-08:00ActiveState Code RecipesProof-of-concept for a more space-efficient, faster-looping dictionary (Python) 2013-01-17T09:28:24-08:00Raymond Hettingerhttp://code.activestate.com/recipes/users/178123/http://code.activestate.com/recipes/578375-proof-of-concept-for-a-more-space-efficient-faster/ <p style="color: grey"> Python recipe 578375 by <a href="/recipes/users/178123/">Raymond Hettinger</a> (<a href="/recipes/tags/compact/">compact</a>, <a href="/recipes/tags/dictionary/">dictionary</a>). Revision 20. </p> <p>Save space and improve iteration speed by moving the hash/key/value entries to a densely packed array keeping only a sparse array of indices. This eliminates wasted space without requiring any algorithmic changes.</p> Dependency Injection The Python Way (Python) 2007-03-10T11:26:16-08:00Zoran Isailovskihttp://code.activestate.com/recipes/users/2400454/http://code.activestate.com/recipes/413268-dependency-injection-the-python-way/ <p style="color: grey"> Python recipe 413268 by <a href="/recipes/users/2400454/">Zoran Isailovski</a> (<a href="/recipes/tags/oop/">oop</a>). Revision 9. </p> <p>Sample Pythonic Inversion-of-Control Pseudo-Container.</p> First Class Enums in Python (Python) 2005-05-09T16:53:44-07:00Zoran Isailovskihttp://code.activestate.com/recipes/users/2400454/http://code.activestate.com/recipes/413486-first-class-enums-in-python/ <p style="color: grey"> Python recipe 413486 by <a href="/recipes/users/2400454/">Zoran Isailovski</a> (<a href="/recipes/tags/programs/">programs</a>). Revision 7. </p> <p>True immutable symbolic enumeration with qualified value access.</p>