Skip to content

Fix for #3788 __getattr__ issue - #3795

Closed
rwgk wants to merge 3 commits into
pybind:smart_holderfrom
rwgk:sh_getattr_issue
Closed

Fix for #3788 __getattr__ issue#3795
rwgk wants to merge 3 commits into
pybind:smart_holderfrom
rwgk:sh_getattr_issue

Conversation

@rwgk

@rwgkrwgk commented Mar 10, 2022

Copy link
Copy Markdown
Collaborator

Description

Moving try_as_void_ptr_capsule() to be last in load_impl(). I.e. it will only be called if there is no other way to load src. This avoids the infinite recursion reported under #3788.

Suggested changelog entry:

@rwgkrwgk changed the title Reproducer for #3788 __getattr__ issueFix for #3788 __getattr__ issueMar 10, 2022
@rwgk

rwgk commented Mar 10, 2022

Copy link
Copy Markdown
CollaboratorAuthor

@wangxf123456 is continuing the work under #3796.
I'll close this PR as soon as the CI is finished (almost done). It's on track to be completely successful.

@rwgkrwgk closed this Mar 10, 2022
@rwgk
rwgk deleted the sh_getattr_issue branch March 10, 2022 22:26
@rwgkrwgk mentioned this pull request Feb 10, 2023
Sign up for freeto 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.

1 participant

@rwgk