test_pickling.py
993 Bytes
-
Add py::pickle() adaptor for safer __getstate__/__setstate__ bindings · 1e5a7da3
This is analogous to `py::init()` vs `__init__` + placement-new. `py::pickle()` reuses most of the implementation details of `py::init()`.
Dean Moldovan committed