Author rhettinger
Recipients jackdied, michael.foord, ncoghlan, rhettinger
Date 2010-07-10.09:00:51
SpamBayes Score 0.126241
Marked as misclassified No
Message-id <1278752454.05.0.624640250926.issue9110@psf.upfronthosting.co.za>
In-reply-to
Content
> this change is just syntactic sugar for
> any construct of the following form:
>
>  def f():
>    with cm():
>      # Do stuff
>
> ContextDecorator lets you instead write:
>
>  @cm
>  def f():
>    # Do stuff

Nicely expressed.  This ought to go directly into the documentation.
History
Date User Action Args
2010-07-10 09:00:54rhettingersetrecipients: + rhettinger, ncoghlan, jackdied, michael.foord
2010-07-10 09:00:54rhettingersetmessageid: <1278752454.05.0.624640250926.issue9110@psf.upfronthosting.co.za>
2010-07-10 09:00:52rhettingerlinkissue9110 messages
2010-07-10 09:00:51rhettingercreate