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

optimize is_instance for PyBaseException #3312

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

davidhewitt
Copy link
Member

Split off from #3306

PyExceptionInstance_Check is an efficient way to check for exceptions, just checks a bit on the type flags. Worth making use of it, it should be equivalent in behaviour.

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Jul 11, 2023
@davidhewitt
Copy link
Member Author

If there are no concerns here, I'll merge it tonight or tomorrow so that I can rebase #3306

@adamreichold
Copy link
Member

If there are no concerns here, I'll merge it tonight or tomorrow so that I can rebase #3306

Sorry, did not get a notification for this one. (I now have a mail thread with the first starting with Re: in my inbox.) Will have a look at it tonight.

@adamreichold adamreichold added this pull request to the merge queue Jul 14, 2023
Merged via the queue into PyO3:main with commit 65312b4 Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants