On Mon, Jun 8, 2009 at 2:29 AM, Jouni K. Seppänen<j...@iki.fi> wrote: >> Have you looked at the decorator module? >> http://pypi.python.org/pypi/decorator > > That looks like it could work -- the memoize example seems to be pretty > close to our wrapping needs. I'll spend some time thinking about this > later. Thanks for the link! >
We use Michele's decorators.py extensively in ipython for writing testing wrappers, we carry a local copy we call decorators_msim and then add some utilities on top. Feel free to pillage as needed or just read for info: http://bazaar.launchpad.net/~ipython-dev/ipython/0.10/annotate/head%3A/IPython/testing/decorators.py Cheers, f ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel