Skip to content

Conversation

mdecaria
Copy link
Contributor

@mdecaria mdecaria commented Sep 26, 2025

setStringVar is missing from the python bindings. Its present in the Java Bindings

Without this method the user is required to use dictionary-style in Python.
context["foo"] = ["bar"]

I've seen this current way catch quite a few people off guard, as they are expecting a method to set arbitrary Context Variables.

With this proposed change, a user can now also do:
context.setStringVar("foo", "bar")

@mdecaria mdecaria changed the title Add setStringVar to Context Oject Python Bindings Add setStringVar to Context Object Python Bindings Sep 26, 2025
Copy link
Collaborator

@doug-walker doug-walker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the enhancement, Michael!

Shall we label this as a Dev Days contribution?

@doug-walker doug-walker requested a review from cozdas September 26, 2025 17:13
@mdecaria
Copy link
Contributor Author

Shall we label this as a Dev Days contribution?

Sure thing, this PR was also logged to encourage others to participate!

@doug-walker doug-walker merged commit 1da6645 into AcademySoftwareFoundation:main Sep 29, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants