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, scoder, vstinner, yselivanov
Date 2015-05-30.21:01:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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).
Date User Action Args
2015-05-30 21:01:56yselivanovsetrecipients: + yselivanov, gvanrossum, scoder, vstinner
2015-05-30 21:01:56yselivanovsetmessageid: <>
2015-05-30 21:01:56yselivanovlinkissue24004 messages
2015-05-30 21:01:56yselivanovcreate