Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
wants to merge 16 commits into from

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Dec 2, 2021

@AlexWaygood AlexWaygood added the type-bug An unexpected behavior, bug, or error label Dec 6, 2021
AlexWaygood and others added 3 commits December 16, 2021 22:37
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
@AlexWaygood AlexWaygood added the needs backport to 3.10 only security fixes label Dec 19, 2021
@AlexWaygood AlexWaygood marked this pull request as draft January 24, 2022 07:48
@AlexWaygood AlexWaygood marked this pull request as ready for review January 24, 2022 19:20
Copy link
Member

@JelleZijlstra JelleZijlstra left a 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):
Copy link
Member

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.

@JelleZijlstra
Copy link
Member

@ericvsmith could you take a look at this PR?

@ericvsmith
Copy link
Member

Thanks for the reminder. This is one of the things I'll be reviewing at PyCon.

@AlexWaygood
Copy link
Member Author

AlexWaygood commented May 3, 2022

Closing and reopening to retrigger CI, since test_concurrent_futures has been running for 2hr43 and counting on Windows (x86) -- I've opened #92222 since this appears to have happened 3 times in 3 days in our CI.

@AlexWaygood
Copy link
Member Author

@ericvsmith, any thoughts on this PR? Happy to revise or close if you don't like the approach :)

@ericvsmith
Copy link
Member

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.

@AlexWaygood
Copy link
Member Author

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.

@AlexWaygood
Copy link
Member Author

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.

Ping, @ericvsmith :)

@AlexWaygood
Copy link
Member Author

Closing as per @ericvsmith's rationale in #90055 (comment)

@AlexWaygood AlexWaygood closed this Oct 4, 2022
@AlexWaygood AlexWaygood deleted the dataclass-slots branch October 4, 2022 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants