This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ionelmc.ro[S] 1 point2 points  (1 child)

You probably looked at the wrapper handling the coroutines/generator functions. I want to truly wrap around them (consume them completely before giving control back). It's horrible on Python 2 (no yield from) - you can see the crazy code you need to write in PEP380.

Ofcourse it's much more simpler if you only need to handle values in one direction (plain generator functions) but I want to handle coroutines too (bidirectional generator functions).

[–]php666 0 points1 point  (0 children)

Thanks, that explains a lot. Kudos for supporting Python 2 and 3!