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 michael.foord
Recipients jackdied, michael.foord, ncoghlan
Date 2010-07-10.02:27:05
SpamBayes Score 0.1597881
Marked as misclassified No
Message-id <1278728828.48.0.405164084347.issue9110@psf.upfronthosting.co.za>
In-reply-to
Content
Hey Jack. The point of ContextDecorator is that when you are implementing a context manager, which you will usually do as a class anyway, you can just inherit from it and get the decorator functionality for free.

If you like the contextmanager style of creating your apis then you can just use contextmanager - which now uses ContextDecorator *anyway*. (i.e. all uses of contextlib.contextmanager can now be used as decorators as well as context managers.)
History
Date User Action Args
2010-07-10 02:27:08michael.foordsetrecipients: + michael.foord, ncoghlan, jackdied
2010-07-10 02:27:08michael.foordsetmessageid: <1278728828.48.0.405164084347.issue9110@psf.upfronthosting.co.za>
2010-07-10 02:27:06michael.foordlinkissue9110 messages
2010-07-10 02:27:05michael.foordcreate