-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-45897: Fix frozen-slotted dataclass bug #29895
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
Conversation
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but will leave to @ericvsmith to merge.
# Frozen __setattr__/__delattr__ must be added after __slots__ | ||
# bpo-45897 | ||
if frozen: | ||
for fn in _frozen_get_del_attr(cls, field_list, globals): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this function ought to be named _frozen_set_del_attr
. That's outside the scope of this PR though.
@ericvsmith could you take a look at this PR? |
Thanks for the reminder. This is one of the things I'll be reviewing at PyCon. |
Closing and reopening to retrigger CI, since |
@ericvsmith, any thoughts on this PR? Happy to revise or close if you don't like the approach :) |
Sorry it’s taken me so long to look at this, @AlexWaygood. I’ve been super-busy, with no signs of improving. If you don’t hear from me in a two weeks or so, please ping me again. |
Thanks for letting me know @ericvsmith, no worries. |
Ping, @ericvsmith :) |
Closing as per @ericvsmith's rationale in #90055 (comment) |
https://bugs.python.org/issue45897