Message131931
| Author |
pitrou |
| Recipients |
michael.foord, ncoghlan, pitrou |
| Date |
2011年03月23日.22:18:03 |
| SpamBayes Score |
1.1358107e-07 |
| Marked as misclassified |
No |
| Message-id |
<1300918677.3495.32.camel@localhost.localdomain> |
| In-reply-to |
<AANLkTikfoW2T7icb-nVrVLi4SjGiSX_YxcNNAFvJwghK@mail.gmail.com> |
| Content |
> We can either hack this to work by providing ContextDecorator with a
> way to get the underlying context manager to create a new copy of
> itself each time, or else revert to the 3.1 status quo and declare
> that context managers created via contextlib.contextmanager simply
> can't be used as decorators. I'm inclined to favour the latter option.
I would vote for the former option :) |
|