[python-uk] Tell us what you did with Python this year....

Michael Foord fuzzyman at voidspace.org.uk
Tue Dec 21 19:09:15 CET 2010


On 21 December 2010 14:56, Jonathan Hartley <tartley at 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
> tartley at tartley.com   +44 7737 062 225   twitter/skype: tartley
>
>
> _______________________________________________
> python-uk mailing list
> python-uk at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-uk/attachments/20101221/efb17242/attachment.html>


More information about the python-uk mailing list