Uh oh!
There was an error while loading. Please reload this page.
gh-119786: added InternalDocs/generators.md - #128524
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
markshannon
left a comment
There was a problem hiding this comment.
This seems to cover the semantics, which I think we can assume the reader knows, more than the implementation.
Some things I think are worth covering:
- The location of the frame, specifically how it moves from generator to frame object if the frame object outlives the generator
- Similarities and differences between
yieldandreturn(you already cover this) - Generator construction (
RETURN_GENERATOR) - Specialization of
FOR_ITERfor generators - How
yield fromis implemented - Why
CLEANUP_THROWneeds to exist.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
markshannon
left a comment
There was a problem hiding this comment.
A useful addition to the docs.
I have a few more suggestions, but this mostly looks good.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.