ContextDecorator via contextmanager: broken?
Ian Kelly
ian.g.kelly at gmail.com
Fri Jun 10 19:11:36 EDT 2011
On Fri, Jun 10, 2011 at 4:57 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> So as far as I can tell, generator-based context managers simply can't
> be used as ContextDecorators. Furthermore, the documentation's claim
> that they can is actually harmful, since they *appear* to work at
> first. Or am I simply missing something here?
Please ignore my previous post. Looks like this has already been fixed
for Python 3.2.1 and 3.3.
http://bugs.python.org/issue11647
More information about the Python-list
mailing list