Skip to content

Commit

Permalink
pythongh-125832: Reformat comments for inlined comprehensions
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Nov 3, 2024
1 parent 9ad57cf commit 252aaa9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Python/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -4088,11 +4088,11 @@ codegen_call_helper(compiler *c, location loc,
}

/* List and set comprehensions work by being inlined at the location where
they are defined. The isolation of iteration variables is provided by
pushing/popping clashing locals on the stack. Generator expressions work
by creating a nested function to perform the actual iteration.
This means that the iteration variables don't leak into the current scope.
See https://peps.python.org/pep-0709/ for additional information.
they are defined. The isolation of iteration variables is provided by
pushing/popping clashing locals on the stack. Generator expressions work
by creating a nested function to perform the actual iteration.
This means that the iteration variables don't leak into the current scope.
See https://peps.python.org/pep-0709/ for additional information.
The defined function is called immediately following its definition, with the
result of that call being the result of the expression.
The LC/SC version returns the populated container, while the GE version is
Expand Down

0 comments on commit 252aaa9

Please sign in to comment.