Yury Selivanov added the comment: > Why is the AwaitableABC type check needed, in addition to looking up the > relevant method? IIUC, the type check will just do a lookup of the same > method if the type hasn't been registered as Awaitable explicitly.
Because __await__ should be defined on the class, not on the method (as for all other magic methods in Python). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24004> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com