Message244498
> 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:56 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, scoder, vstinner |
2015-05-30 21:01:56 | yselivanov | set | messageid: <1433019716.91.0.964187001066.issue24004@psf.upfronthosting.co.za> |
2015-05-30 21:01:56 | yselivanov | link | issue24004 messages |
2015-05-30 21:01:56 | yselivanov | create | |
|