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

Implement __slots__ to avoid user confusion #508

Open
MicahGale opened this issue Aug 25, 2024 Discussed in #345 · 0 comments
Open

Implement __slots__ to avoid user confusion #508

MicahGale opened this issue Aug 25, 2024 Discussed in #345 · 0 comments
Assignees
Labels
code improvement feature request An issue that improves the user interface.

Comments

@MicahGale
Copy link
Collaborator

Discussed in #345

Originally posted by MicahGale August 2, 2023
TIL about slots in python: https://stackoverflow.com/questions/472000/usage-of-slots

Basically statically allocating python attributes. The benefit would be to guard against typos frustrating users. For instance cell.materail = mat.

@MicahGale MicahGale added code improvement feature request An issue that improves the user interface. labels Aug 25, 2024
@MicahGale MicahGale self-assigned this Aug 25, 2024
@MicahGale MicahGale mentioned this issue Aug 25, 2024
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code improvement feature request An issue that improves the user interface.
Projects
None yet
Development

No branches or pull requests

1 participant