Towards #1333 (as part of the larger umbrella of #2646), this is meant to be my recording of investigating a py::wrapper<>
shim trampoline with "resurrection" via the Python garbage collection.
I have a working proof-of-concept that is used for in a fork of pybind11 - see RobotLocomotion/pybind11:README_DRAKE.md
.
The primary points to see are:
py::wrapper<>
py::class_<> methods
(note: some of this is coupled to other issues mentioned in the fork READMEtest_ownership_transfer.py
, test_ownership_transfer.cpp
This may not be the best mechanism to prevent slicing. Willi be listing other mechanisms (i.e. PRs / suggestions from others).
External Referencesobject.__del__
\cc @rhaschke @rwgk @YannickJadoul
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4