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
I see class_::def_property() and class_::def_property_readonly() to create read-write and read-only properties, but I miss something for write-only properties. Is this something that would first have to be implemented inside pybind11?
Of course I can always leave a setter method and call object.set_something(value), but it would be nice in a way to have complete support for properties.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I see
class_::def_property()
andclass_::def_property_readonly()
to create read-write and read-only properties, but I miss something for write-only properties. Is this something that would first have to be implemented inside pybind11?Of course I can always leave a setter method and call
object.set_something(value)
, but it would be nice in a way to have complete support for properties.Beta Was this translation helpful? Give feedback.
All reactions