bpo-45897: Fix frozen-slotted dataclass bug#29895
bpo-45897: Fix frozen-slotted dataclass bug#29895AlexWaygood wants to merge 16 commits intopython:mainfrom
Conversation
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
JelleZijlstra
left a comment
There was a problem hiding this comment.
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.
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