Eric Hopper added the comment:
Here's an update to types.coroutine that fixes the problem for me.
--
Added file: http://bugs.python.org/file46756/types.coroutine.py
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from Eric Hopper:
The types.coroutine decorator for Python 3.6 (and I suspect for Python 3.6.1 as
well) simply monkey patches the function it's passed and then returns it. This
results in behavior that I found somewhat surprising.
def bar():
yield 5
foo = types.coroutine
Changes by Eric Hopper eric-b...@omnifarious.org:
--
nosy: +Omnifarious
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7753
___
___
Python-bugs
Eric Hopper added the comment:
My testing methodology was faulty, this is not actually true. Oops.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1361
__
___
Python-bugs-list