-
Notifications
You must be signed in to change notification settings - Fork 770
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
Opt-out of PyCell
#1068
Comments
Perhaps this opt-out could be Though TBH I think I prefer immutable-by-default, so perhaps we should have |
Could we couch this in terms of exclusive and non-exclusive access rather than mutability? |
First step of this in #1979 has now been merged. A future refinement will be to make mutability (and accompanying overhead) opt-in. |
I'm going to close this in favour of #4369, which I believe we plan to do soon as part of the improvements targeting freethreading. |
Like we have
#[pyclass(unsendable)]
to opt-out ofSend
, many users will not want their pyclass to be mutable. It would be nice if we could allow them to opt-out of havingPyCell
as the backend, so that they don't have to deal with the performance cost.The text was updated successfully, but these errors were encountered: