test_methods_and_attributes.py
18 KB
-
Added write only property functions for issue #1142 (#1144) · 0a0758ce
py::class_<T>'s `def_property` and `def_property_static` can now take a `nullptr` as the getter to allow a write-only property to be established (mirroring Python's `property()` built-in when `None` is given for the getter). This also updates properties to use the new nullptr constructor internally.
Ted Drain committed