Popular recipes by Alec Thomas http://code.activestate.com/recipes/users/2870300/2011-11-23T20:12:03-08:00ActiveState Code RecipesDocstring inheritance class decorator (Python)
2011-11-23T20:12:03-08:00Alec Thomashttp://code.activestate.com/recipes/users/2870300/http://code.activestate.com/recipes/577102-docstring-inheritance-class-decorator/
<p style="color: grey">
Python
recipe 577102
by <a href="/recipes/users/2870300/">Alec Thomas</a>
(<a href="/recipes/tags/class/">class</a>, <a href="/recipes/tags/decorator/">decorator</a>, <a href="/recipes/tags/docstring/">docstring</a>, <a href="/recipes/tags/inheritance/">inheritance</a>).
Revision 2.
</p>
<p>Inherits method docstrings from parent classes.</p>
Elegant (?) AoP for methods and functions (Python)
2010-03-02T20:10:38-08:00Alec Thomashttp://code.activestate.com/recipes/users/2870300/http://code.activestate.com/recipes/577082-elegant-aop-for-methods-and-functions/
<p style="color: grey">
Python
recipe 577082
by <a href="/recipes/users/2870300/">Alec Thomas</a>
(<a href="/recipes/tags/aop/">aop</a>, <a href="/recipes/tags/aspect/">aspect</a>, <a href="/recipes/tags/join/">join</a>, <a href="/recipes/tags/oriented/">oriented</a>, <a href="/recipes/tags/point/">point</a>).
Revision 2.
</p>
<p>There are a couple of other AoP related recipes on ASPN. This one is designed to have a simple, elegant interface.</p>
Implementation of the token bucket algorithm (Python)
2007-04-21T23:15:28-07:00Alec Thomashttp://code.activestate.com/recipes/users/2870300/http://code.activestate.com/recipes/511490-implementation-of-the-token-bucket-algorithm/
<p style="color: grey">
Python
recipe 511490
by <a href="/recipes/users/2870300/">Alec Thomas</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
</p>
<p>An implementation of the token bucket algorithm in Python.</p>
Persistent, lazy, caching, dictionary (Python)
2006-04-28T21:27:26-07:00Alec Thomashttp://code.activestate.com/recipes/users/2870300/http://code.activestate.com/recipes/492226-persistent-lazy-caching-dictionary/
<p style="color: grey">
Python
recipe 492226
by <a href="/recipes/users/2870300/">Alec Thomas</a>
.
</p>
<p>A persistent, lazy, caching, dictionary, using the anydbm module for persistence. Keys must be basic strings (this is an anydbm limitation) and values must be pickle-able objects.</p>