[3.12] gh-112358: Fix Python 3.12 regression with subclassing struct.Struct (GH-112424) by mdickinson · Pull Request #112426 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@mdickinson

Copy link

Member

@mdickinson mdickinson commented

Nov 26, 2023

edited by bedevere-app bot

Loading

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 <dickinsm@gmail.com>

@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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@mdickinson