You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the test case!
TBH, I was afraid something like this could happen, although it's time-consuming to anticipate all edge cases. The test case is super useful.
Tagging @wangxf123456, we will look into a fix.
* Fixes issue
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix lint error
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix flake8
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix clang tidy
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix again
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix test
* Add comments
* Try fix Valgrind
* Resolve comments
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Required prerequisites
Problem description
Hi, I've found an other issue related to #3788
this is in regard to the smart holder branch
The example code below fails with infinite recursive getattr calls.
removing either
Base2
,Derived2
or the binding of__getattr__
removes the problem.removing the following lines
pybind11/include/pybind11/detail/smart_holder_type_casters.h
Lines 295 to 297 in 9d4b4df
also removes the issue.
Reproducible example code
The text was updated successfully, but these errors were encountered: