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

Fix a SystemError in code.replace() #27771

Merged
merged 2 commits into from Aug 16, 2021

Conversation

gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Aug 15, 2021

Noticed this when working on Experiment D.

While the comment said 'We don't bother resizing localspluskinds',
this would cause .replace() to crash when it happened.
(Also types.CodeType(), but testing that is tedious, and this tests all
code paths.)

While the comment said 'We don't bother resizing localspluskinds',
this would cause .replace() to crash when it happened.
(Also types.CodeType(), but testing that is tedious, and this tests all
code paths.)
Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Good catch!

@gvanrossum gvanrossum merged commit 62bd973 into python:main Aug 16, 2021
12 checks passed
@bedevere-bot
Copy link

bedevere-bot commented Aug 16, 2021

@gvanrossum: Please replace # with GH- in the commit message next time. Thanks!

@gvanrossum gvanrossum deleted the fix-localsplus-resize branch Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants