Skip to content

[3.14] GH-128161: Remove redundant GET_ITER from list comprehension code #134778

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 27, 2025

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented May 27, 2025

@markshannon markshannon force-pushed the dedup-getiter-listcomp branch from e3d638b to 0e39bd3 Compare May 27, 2025 09:00
@markshannon
Copy link
Member Author

This is for 3.14 and 3.13 only as #132555 contains the fix for 3.15

@iritkatriel
Copy link
Member

Do we have a test with the case described in the issue (#128161)?

@markshannon
Copy link
Member Author

Do we have a test with the case described in the issue (#128161)?

Yes, that's the new test added.

@markshannon markshannon merged commit 00122c8 into python:3.14 May 27, 2025
43 checks passed
@miss-islington-app
Copy link

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@markshannon markshannon deleted the dedup-getiter-listcomp branch May 27, 2025 11:29
@miss-islington-app
Copy link

Sorry, @markshannon, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 00122c8b2ab7c402daa144bb498e3a4f33254055 3.13

markshannon added a commit to faster-cpython/cpython that referenced this pull request May 27, 2025
@bedevere-app
Copy link

bedevere-app bot commented May 27, 2025

GH-134788 is a backport of this pull request to the 3.13 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy