X Tutup
The Wayback Machine - https://web.archive.org/web/20221223175620/https://github.com/python/cpython/pull/94421
Skip to content
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

GH-94329: Don't raise on excessive stack consumption #94421

Merged
merged 4 commits into from Jun 30, 2022

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Jun 29, 2022

We want the compiler to produce code that doesn't use excessive amounts of stack, but we shouldn't limit what we can compile.

This PR allows code like x0, x1, ..., x4000 = t to compile and run correctly.

For 3.12 we want to compile the above code in a way that doesn't use too much stack, but for now let's just accept that we need a lot of stack.

Python/compile.c Show resolved Hide resolved
@markshannon markshannon merged commit b152bf4 into python:main Jun 30, 2022
13 of 14 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Jun 30, 2022

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

miss-islington commented Jun 30, 2022

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 30, 2022
…94421)

(cherry picked from commit b152bf4)

Co-authored-by: Mark Shannon <mark@hotpy.org>
@bedevere-bot
Copy link

bedevere-bot commented Jun 30, 2022

GH-94446 is a backport of this pull request to the 3.11 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.

None yet

4 participants
X Tutup