<br><br><div class="gmail_quote">On 21 December 2010 14:56, Jonathan Hartley <span dir="ltr">&lt;<a href="mailto:tartley@tartley.com">tartley@tartley.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 21/12/2010 14:45, Michael Foord wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
my favourites being contextlib.ContextDecorator<br>
</blockquote>
<br></div>
I didn&#39;t know that had your fingerprints on it! Nice one - I love this and use it all the time.<div class="im"><br></div></blockquote><div><br>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&#39;s idea.)<br>
<br>All the best,<br><br>Michael<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
<br>
    Jonathan<br>
<br>
-- <br>
Jonathan Hartley      Made of meat.      <a href="http://tartley.com" target="_blank">http://tartley.com</a><br>
<a href="mailto:tartley@tartley.com" target="_blank">tartley@tartley.com</a>   +44 7737 062 225   twitter/skype: tartley<br>
<br>
<br>
_______________________________________________<br></div><div><div></div><div class="h5">
python-uk mailing list<br>
<a href="mailto:python-uk@python.org" target="_blank">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><pre cols="72"><a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br><br>May you do good and not evil<br>May you find forgiveness for yourself and forgive others<br>
May you share freely, never taking more than you give.<br>-- the sqlite blessing <a href="http://www.sqlite.org/different.html" target="_blank">http://www.sqlite.org/different.html</a></pre>
<br>