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-96711: Do not print debug information upon Invalid opcode #96712

Merged
merged 1 commit into from Sep 20, 2022

Conversation

serge-sans-paille
Copy link
Contributor

@serge-sans-paille serge-sans-paille commented Sep 9, 2022

@serge-sans-paille
Copy link
Contributor Author

serge-sans-paille commented Sep 15, 2022

cc @vstinner :-)

Python/ceval.c Outdated Show resolved Hide resolved
@serge-sans-paille serge-sans-paille force-pushed the fix/cleanup-unknown-opcode branch 4 times, most recently from 2c662a3 to 32e4640 Compare Sep 19, 2022
@serge-sans-paille
Copy link
Contributor Author

serge-sans-paille commented Sep 19, 2022

@vstinner : as green as a clover :-)

Lib/test/test_code.py Outdated Show resolved Hide resolved
Python/ceval.c Outdated Show resolved Hide resolved
Lib/test/test_code.py Outdated Show resolved Hide resolved
@serge-sans-paille serge-sans-paille force-pushed the fix/cleanup-unknown-opcode branch 4 times, most recently from c64cba3 to c1f15ec Compare Sep 20, 2022
… Invalid opcode

Also add code to test that path.

Fix python#96711
@vstinner vstinner merged commit fc05107 into python:main Sep 20, 2022
12 checks passed
@vstinner
Copy link
Member

vstinner commented Sep 20, 2022

Merged, thanks @serge-sans-paille. It's good that all data are now available to the caller in the exception message directly, it's more convenient than having to deal with stderr.

IMO it's an enhancement, not a bugfix, so I will not backport the change to Python 3.11 and older versions.

@serge-sans-paille
Copy link
Contributor Author

serge-sans-paille commented Sep 20, 2022

Thanks for the review!

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