Bug report
Bug description:
After the implementation of https://peps.python.org/pep-0709/, this comment looks wrong:
|
/* List and set comprehensions and 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. |
|
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 |
|
flagged in symtable.c as a generator, so it returns the generator object |
|
when the function is called. |
|
|
|
Possible cleanups: |
|
- iterate over the generator sequence instead of using recursion |
|
*/ |
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
After the implementation of https://peps.python.org/pep-0709/, this comment looks wrong:
cpython/Python/codegen.c
Lines 4079 to 4090 in 57e3c59
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs