Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
GH-127682: Only call__iter__
once in generator expressions.#132351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
d87e7f3
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry,@markshannon, I could not cleanly backport this to
|
Do you need to bump the magic number here? I forgot if compiler-only changes need that. |
I don’t think so, since the bytecode format and behavior is unchanged. |
Uh oh!
There was an error while loading.Please reload this page.
Removes the extra
GET_ITER
instruction emitted when creating a generator expression.This:
__iter__
method to be used in generator expressions, as they were up until 3.12.