[issue24325] Speedup types.coroutine()

Stefan Behnel report at bugs.python.org
Fri Jul 3 09:47:30 CEST 2015


Stefan Behnel added the comment:

> the undecorated form will never be visible to any code other than the decorator

Assuming that 1) it's the first and/or only decorator, 2) it's used to
decorate a generator function that returns its own generator and 3) it's
really used as a decorator and not as a general helper function to safely
wrap some object that was created somewhere else.

----------

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


More information about the Python-bugs-list mailing list