Hi, 2015-04-23 17:54 GMT+02:00 Yury Selivanov <yselivanov.ml at gmail.com>: > Greg wants to implement __cocall__ on futures. This way > you'll be able to write > > cocall fut() # instead of "await fut" Oh, I missed something in the PEP 3152: a obj__cocall__() method can be an iterator/generator, it can be something different than a cofunction. So a __cocall__() *can* use yield and yield from. But to use cocall, it must be a cofunction. It's not easy to understand the whole puzzle. IMO the PEP 492 better explains how pieces are put together ;-) Victor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4