On 21 December 2010 14:56, Jonathan Hartley <tart...@tartley.com> wrote:
> On 21/12/2010 14:45, Michael Foord wrote: > >> my favourites being contextlib.ContextDecorator >> > > I didn't know that had your fingerprints on it! Nice one - I love this and > use it all the time. > > It came out of the pattern used in mock where patch (and other decorators) also work as context managers. This was first implemented at Resolver Systems... (I think it was Tom's idea.) All the best, Michael > > Jonathan > > -- > Jonathan Hartley Made of meat. http://tartley.com > tart...@tartley.com +44 7737 062 225 twitter/skype: tartley > > > _______________________________________________ > python-uk mailing list > python-uk@python.org > http://mail.python.org/mailman/listinfo/python-uk > -- http://www.voidspace.org.uk/ May you do good and not evil May you find forgiveness for yourself and forgive others May you share freely, never taking more than you give. -- the sqlite blessing http://www.sqlite.org/different.html
_______________________________________________ python-uk mailing list python-uk@python.org http://mail.python.org/mailman/listinfo/python-uk