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

macros: fix panic in __get__ implementation #1997

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

davidhewitt
Copy link
Member

Closes #1994

It looks like either argument to the function can be a null pointer depending on usage. In these cases I substitute with None before reaching the extraction code.

@davidhewitt davidhewitt merged commit e790d55 into PyO3:main Nov 15, 2021
@davidhewitt davidhewitt deleted the get-panic branch November 15, 2021 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Descriptor __get__ fails on class
1 participant