diff options
author | Donghee Na <donghee.na@python.org> | 2024-11-03 04:15:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-03 04:15:07 (GMT) |
commit | 8161afe51c65afbf0332da58837d94975cec9f65 (patch) | |
tree | 3e985eff6db0c3451c11e16700104b2722b67894 /Python/codegen.c | |
parent | 9ad57cf58b76d1abe4786fb2e4c77a02e100d047 (diff) | |
download | cpython-8161afe51c65afbf0332da58837d94975cec9f65.zip cpython-8161afe51c65afbf0332da58837d94975cec9f65.tar.gz cpython-8161afe51c65afbf0332da58837d94975cec9f65.tar.bz2 |
gh-125832: Reformat comments for inlined comprehensions (gh-126346)
Diffstat (limited to 'Python/codegen.c')
-rw-r--r-- | Python/codegen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/codegen.c b/Python/codegen.c index c060ed7..d6ba858 100644 --- a/Python/codegen.c +++ b/Python/codegen.c @@ -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 |