[issue11647] function decorated with a context manager can only be invoked once

ysj.ray report at bugs.python.org
Mon Mar 28 16:49:18 CEST 2011


ysj.ray <ysj.ray at gmail.com> added the comment:

Now I found that I am wrong and I feel OK with make the context manager  reusable when used as a decorator. I missed one thing: the reusable behavior is regarded as in the decorated function but not in the decorator context manager. :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11647>
_______________________________________


More information about the Python-bugs-list mailing list