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


Groups > comp.lang.python > #7418 > unrolled thread

Re: ContextDecorator via contextmanager: broken?

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2011-06-10 17:11 -0600
Last post2011-06-10 17:11 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#7418 — Re: ContextDecorator via contextmanager: broken?

FromIan Kelly <ian.g.kelly@gmail.com>
Date2011-06-10 17:11 -0600
SubjectRe: ContextDecorator via contextmanager: broken?
Message-ID<mailman.115.1307747527.11593.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web