Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7418

Re: ContextDecorator via contextmanager: broken?

References <BANLkTi=U9JjfWQgDvJQUv48AD1r3AZsmTg@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2011-06-10 17:11 -0600
Subject Re: ContextDecorator via contextmanager: broken?
Newsgroups comp.lang.python
Message-ID <mailman.115.1307747527.11593.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Jun 10, 2011 at 4:57 PM, Ian Kelly <ian.g.kelly@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: ContextDecorator via contextmanager: broken? Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-10 17:11 -0600

csiph-web