Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use %extend for properties of Settings #616

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

eltoder
Copy link
Contributor

@eltoder eltoder commented Feb 1, 2024

Use SWIG native way to add properties to Settings[1]. This works with all target languages using the most natural feature available (e.g. properties in Python and C# and get/set methods in Java).

For now only enable this for Python. Other languages are easy as well, except for backward compatibility concerns.

Also, deprecate get/set methods in Python.

[1] https://www.swig.org/Doc4.2/SWIG.html#SWIG_adding_member_functions near the end of the section.

Use SWIG native way to add properties to Settings[1]. This works with
all target languages using the most natural feature available (e.g.
properties in Python and C# and get/set methods in Java).

For now only enable this for Python. Other languages are easy as well,
except for backward compatibility concerns.

Also, deprecate get/set methods in Python.

[1] https://www.swig.org/Doc4.2/SWIG.html#SWIG_adding_member_functions
near the end of the section.
@lballabio lballabio added this to the Release 1.34 milestone Feb 2, 2024
@lballabio lballabio merged commit 9ddb175 into lballabio:master Feb 2, 2024
8 checks passed
@eltoder eltoder deleted the feature/settings-properties branch February 2, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants