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

Fixes issue #3788 #3796

Merged
merged 6 commits into from
Mar 11, 2022
Merged

Fixes issue #3788 #3796

merged 6 commits into from
Mar 11, 2022

Conversation

wangxf123456
Copy link
Contributor

@wangxf123456 wangxf123456 commented Mar 10, 2022

Description

Fixes #3788 by moving try_as_void_ptr_capsule to the end of load_impl. This ensures that Python objects will not be loaded as void pointer capsules if it can be loaded normally. Note that try_as_void_ptr_capsule is only called when convert=true. So arguments marked with .noconvert() will not be loaded as void pointer capsules.

Also simplified the test cases.

Ralf W. Grosse-Kunstleve and others added 4 commits March 10, 2022 12:58
@wangxf123456 wangxf123456 changed the title Sh getattr fix Fixes issue #3788 Mar 10, 2022
@wangxf123456 wangxf123456 marked this pull request as ready for review March 11, 2022 00:13
@rwgk rwgk merged commit 9d4b4df into pybind:smart_holder Mar 11, 2022
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Mar 11, 2022
@rwgk rwgk removed the needs changelog Possibly needs a changelog entry label Mar 11, 2022
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.

2 participants