Skip to content

[3.12] gh-112358: Fix Python 3.12 regression with subclassing struct.Struct (GH-112424) #112426

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

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Nov 26, 2023

Revert commit c8c0afc (PR GH-94532), which moved struct.Struct initialisation from Struct.__init__ to Struct.__new__. This caused issues with code in the wild that subclasses struct.Struct.. (cherry picked from commit 9fe6034)

…truct.Struct. (pythonGH-112424)

Revert commit c8c0afc (PR pythonGH-94532),
which moved `struct.Struct` initialisation from `Struct.__init__` to `Struct.__new__`.
This caused issues with code in the wild that subclasses `struct.Struct`..
(cherry picked from commit 9fe6034)

Co-authored-by: Mark Dickinson <[email protected]>
@mdickinson mdickinson merged commit 42df736 into python:3.12 Nov 27, 2023
@mdickinson mdickinson deleted the backport-9fe6034-3.12 branch November 27, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant