Stefan Behnel added the comment:

Ok, now the problem with *this* patch is that __iter__ and __await__ are 
special methods that are being looked up on the type, not the instance. 
Similarly __next__, I think, as it also has its own (type) slot. But I think 
you're right that __next__ is also needed here.

I'm attaching a patch that works for me.

----------
Added file: http://bugs.python.org/file39556/types_coroutine.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24316>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to