RobotLocomotion / drake

Model-based design and verification for robotics.
https://drake.mit.edu
Other
3.35k stars 1.27k forks source link

[pydrake] Add function to make arbitrary ref cycles #22146

Closed rpoyner-tri closed 1 week ago

rpoyner-tri commented 1 week ago

This patch adds internal::make_arbitrary_ref_cycle(), which will prove useful for awkward bindings like those involving multiple return values.

While in the neighborhood, it also adds a few previously missing tests.


This change is Reviewable