Popular recipes by Gonçalo Rodrigues http://code.activestate.com/recipes/users/140909/2003-11-18T18:24:40-08:00ActiveState Code RecipesGeneralized delegates and proxies (Python)
2003-11-18T18:24:40-08:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/252151-generalized-delegates-and-proxies/
<p style="color: grey">
Python
recipe 252151
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
.
</p>
<p>This is a recipe for new-style class proxies that can also delegate special methods.</p>
super tuples (Python)
2003-08-28T16:04:42-07:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/218485-super-tuples/
<p style="color: grey">
Python
recipe 218485
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
.
Revision 3.
</p>
<p>A simple recipe for building tuple-like classes with attribute acessors.</p>
Trees and more trees, part II (Python)
2003-05-23T10:48:25-07:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/201423-trees-and-more-trees-part-ii/
<p style="color: grey">
Python
recipe 201423
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
.
</p>
<p>We revisit our own recipe <a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/136529" rel="nofollow">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/136529</a> for generalized trees, expanding on the functionality via some metaclass trickery.</p>
Simplified Interface Framework for Python (Python)
2002-11-30T11:43:14-08:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/164901-simplified-interface-framework-for-python/
<p style="color: grey">
Python
recipe 164901
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
.
</p>
<p>In about 70 LOC's we give a simple implementation of (a concept of) interfaces for Python.</p>
<p>Needs Python 2.2</p>
A ThreadedProxy wrapper (Python)
2003-05-23T17:43:11-07:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/159143-a-threadedproxy-wrapper/
<p style="color: grey">
Python
recipe 159143
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
.
Revision 3.
</p>
<p>You want to wrap a general object to make any acess to it thread safe. The ThreadedProxy class accomplishes that.</p>
<p>needs Python 2.2</p>
Finite Arithmetic (Python)
2002-09-10T15:44:02-07:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/149148-finite-arithmetic/
<p style="color: grey">
Python
recipe 149148
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
.
</p>
<p>This is a pure Python implementation of finite arithmetic.</p>
<p>Needs Python > 2.2</p>
Trees and more trees (Python)
2002-06-27T11:43:22-07:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/136529-trees-and-more-trees/
<p style="color: grey">
Python
recipe 136529
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
.
</p>
<p>This is a module with pure Python implementations of binary and
generalized (multi-node) trees.</p>
A Date module. (Python)
2002-10-25T23:31:47-07:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/117215-a-date-module/
<p style="color: grey">
Python
recipe 117215
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
.
Revision 7.
</p>
<p>This pure Python module defines a class Date and several methods
to deal with it, including conversions to some other formats.</p>
<p>Needs Python 2.2</p>
Yet another Set class for Python (Python)
2002-01-13T01:16:56-08:00Gonçalo Rodrigueshttp://code.activestate.com/recipes/users/140909/http://code.activestate.com/recipes/106469-yet-another-set-class-for-python/
<p style="color: grey">
Python
recipe 106469
by <a href="/recipes/users/140909/">Gonçalo Rodrigues</a>
(<a href="/recipes/tags/oop/">oop</a>).
Revision 8.
</p>
<p>This is a pure Pythonic implementation of a set class. The syntax and methods implemented are, for the most part, borrowed from PEP 218 by Greg Wilson.</p>
<p>Python version: 2.2</p>