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

Add Py2 variants of PyDowncastError #3671

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

davidhewitt
Copy link
Member

Part of #3382

To keep .downcast() APIs performant in the error case, and also off the pool, this PR introduces two types used by PyAnyMethods.

PyDowncastError2 (name to change later when we make public) is used for .downcast() and .downcast_exact().

PyDowncastIntoError is used for .downcast_into() and .downcast_into_exact().

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Dec 19, 2023
@davidhewitt davidhewitt force-pushed the dh/downcast-error-split branch from f60f5e5 to 1451418 Compare December 19, 2023 21:00
@adamreichold adamreichold added this pull request to the merge queue Dec 19, 2023
Merged via the queue into PyO3:main with commit ee54132 Dec 19, 2023
34 of 36 checks passed
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