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

bpo-45711: assert that the type of exc_info is redundant #29518

Merged

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Nov 10, 2021

I suggest we commit this so that the diff when we remove the type shows why we think it's safe to do so.

https://bugs.python.org/issue45711

@bedevere-bot
Copy link

bedevere-bot commented Nov 10, 2021

🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit d7c8d15 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@iritkatriel iritkatriel added the 🔨 test-with-buildbots Test the PR with the buildbot fleet and report in the status section label Nov 10, 2021
@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test the PR with the buildbot fleet and report in the status section label Nov 10, 2021
@iritkatriel iritkatriel requested a review from gvanrossum Nov 11, 2021
@iritkatriel
Copy link
Member Author

iritkatriel commented Nov 11, 2021

The test_gdb failure is happening on other branches as well, so this is looking good. Let me know if you think there is value in committing this (I thinking if something breaks in the future, after we remove the type, it might help to have this commit in the history).

@gvanrossum
Copy link
Member

gvanrossum commented Nov 11, 2021

I worry that the code won't be completely removed even by PGO/LTO. Or am I too fearful?

@iritkatriel
Copy link
Member Author

iritkatriel commented Nov 11, 2021

Right, I can make it a macro working in debug mode only.

@markshannon
Copy link
Member

markshannon commented Nov 12, 2021

Looks good 👍

@iritkatriel iritkatriel merged commit de3db14 into python:main Nov 12, 2021
11 checks passed
remykarem pushed a commit to remykarem/cpython that referenced this pull request Dec 7, 2021
@iritkatriel iritkatriel deleted the bpo-45711-exc_info_type_redundant branch Jan 13, 2022
remykarem pushed a commit to remykarem/cpython that referenced this pull request Jan 30, 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

5 participants