Skip to content

Add support for write only properties #1142

Closed
@TD22057

Description

@TD22057

Issue description

We have a few cases where we have C++ code that has write only properties (just a set method) that we'd like to promote. These are basically identical to def_property_readonly except with just a set method. The current def_property can't be used because it relies on the read function always being there to get docs. The additions we made are:

  • def_property_writeonly
  • def_property_writeonly_static

If you don't think this is appropriate, feel free to close this. Otherwise, I'll submit a PR w/ the updated functions and test cases that we've implemented. If you think it's necessary, I'm sure we could also add def_writeonly and def_writeonly_static for completeness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions