←back to thread

116 points doekenorg | 1 comments | | HN request time: 0s | source
Show context
Amakanski ◴[] No.44498559[source]
>> This would require a yield to syntax, which doesn't exist.

There is however the 'yield from' statement.

replies(3): >>44498922 #>>44499113 #>>44499996 #
1. doekenorg ◴[] No.44499996[source]
Yes, there is! However, even if the `iterable` it was yielding from a different Generator, the "outer" generator would still be "running", which still makes it asymmetrical. `yield from` is mentioned in the other post on Generators, though.