Skip to content

[SOFA.Units] Fix tests and change list into tuple#630

Open
bakpaul wants to merge 1 commit into
sofa-framework:masterfrom
bakpaul:26_07_change_list_to_tuple
Open

[SOFA.Units] Fix tests and change list into tuple#630
bakpaul wants to merge 1 commit into
sofa-framework:masterfrom
bakpaul:26_07_change_list_to_tuple

Conversation

@bakpaul

@bakpaul bakpaul commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

This currently doesn't fix an issue but fixes a flaw. The architecture has a weakness that is because it is relying on lists, copy are not real and then modification of the "copied" object might have effect on the original object. Here I replaced lists by tuples to use immutable object instead.

It is not a real issue currently because in the API, there is never a simple copy, but always concatenation of lists, so this is not a problem. But it might at some point if users want to develop on the library.

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.

1 participant