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

Create Lockable mixin #213

Open
psomhorst opened this issue Jun 7, 2024 · 0 comments · May be fixed by #215
Open

Create Lockable mixin #213

psomhorst opened this issue Jun 7, 2024 · 0 comments · May be fixed by #215
Labels
enhancement New feature or request

Comments

@psomhorst
Copy link
Contributor

It is useful if objects can be locked and considered immutable. Numpy arrays can be flagged as locked, which makes them immutable. This mixin should offer easy access to those flags. Non-arrays may be prevented from being overwritten using a custom __setattr__ method. Lists may be converted to tuples. Dicts may be converted to typing.MappingProxyType. However, locking of nested objects is not trivial.

@psomhorst psomhorst added the enhancement New feature or request label Jun 7, 2024
@DaniBodor DaniBodor linked a pull request Jun 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant