This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients gvanrossum, ncoghlan, scoder, yselivanov
Date 2015-05-28.16:31:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

This patch should solve the problem with types.coroutine accepting only pure python generator functions.

The approach is, however, slightly different from what you've proposed.  Instead of having a wrapper class (delegating .throw, .send etc to a wrapped object), we now simply check if the returned value of the wrapped function is an instance of  Issue 24315 enables duck typing for coroutines, so if a cython-based coroutine implements all coroutine abstract methods, it will automatically pass types.coroutine.
Date User Action Args
2015-05-28 16:31:52yselivanovsetrecipients: + yselivanov, gvanrossum, ncoghlan, scoder
2015-05-28 16:31:52yselivanovsetmessageid: <>
2015-05-28 16:31:52yselivanovlinkissue24316 messages
2015-05-28 16:31:52yselivanovcreate