Author michael.foord
Recipients jackdied, michael.foord, ncoghlan
Date 2010-07-10.02:27:05
SpamBayes Score 0.159788
Marked as misclassified No
Message-id <>
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.)
Date User Action Args
2010-07-10 02:27:08michael.foordsetrecipients: + michael.foord, ncoghlan, jackdied
2010-07-10 02:27:08michael.foordsetmessageid: <>
2010-07-10 02:27:06michael.foordlinkissue9110 messages
2010-07-10 02:27:05michael.foordcreate