programming by contract using "decorators"

Michele Simionato michele.simionato at gmail.com
Tue Sep 4 00:06:56 EDT 2007


Russ wrote:
> Dealing with the arguments was not a trivial matter -- at least not
> for me. I had to experiment a bit to get it right. The "getarg"
> function is simply a utility for parsing the ordered and keyword
> arguments. It's very simple, but if something like this already
> exists, please let me know. Thanks.

Check out the decorator module at http://www.phyast.pitt.edu/~micheles/python/documentation.html


 Michele Simionato




More information about the Python-list mailing list