X Tutup
Skip to content

gh-145743: Fix inconsistency after calling Struct.__init__() with invalid format#145744

Open
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:struct-reinitialization-consistency
Open

gh-145743: Fix inconsistency after calling Struct.__init__() with invalid format#145744
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:struct-reinitialization-consistency

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Mar 10, 2026

Only set the format attribute after successful (re-)initialization.

…th invalid format

Only set the format attribute after successful (re-)initialization.
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the fix!

@vstinner vstinner changed the title gh-145743: Fix inconsistancy after calling Struct.__init__() with invalid format gh-145743: Fix inconsistency after calling Struct.__init__() with invalid format Mar 10, 2026
Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup