This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients jackdied, michael.foord, ncoghlan, rhettinger
Date 2010-07-10.09:00:51
SpamBayes Score 0.12624113
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