Skip to content

Conversation

@iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jan 5, 2025

Co-authored-by: Tomas R. <[email protected]>
Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 yield and return (you already cover this)
  • Generator construction (RETURN_GENERATOR)
  • Specialization of FOR_ITER for generators
  • How yield from is implemented
  • Why CLEANUP_THROW needs to exist.

Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A useful addition to the docs.

I have a few more suggestions, but this mostly looks good.

@iritkatriel iritkatriel enabled auto-merge (squash) January 16, 2025 13:15
@iritkatriel iritkatriel merged commit e81fe94 into python:main Jan 16, 2025
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants