FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-145743: Fix inconsistency after calling Struct.__init__() with invalid format by serhiy-storchaka · Pull Request #145744 · python/cpython · GitHub

Repository navigation

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

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:struct-reinitialization-consistency
Mar 10, 2026
Merged

serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:struct-reinitialization-consistency

Conversation

serhiy-storchaka commented Mar 10, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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

…th invalid format

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

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. Thanks for the fix!

Comment thread Modules/_struct.c Outdated
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>
serhiy-storchaka merged commit 3f33bf8 into python:main Mar 10, 2026
48 checks passed

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

serhiy-storchaka deleted the struct-reinitialization-consistency branch March 10, 2026 16:29
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 10, 2026
…th invalid format (pythonGH-145744)

Only set the format attribute after successful (re-)initialization.
(cherry picked from commit 3f33bf8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 10, 2026
…th invalid format (pythonGH-145744)

Only set the format attribute after successful (re-)initialization.
(cherry picked from commit 3f33bf8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

bedevere-app Bot commented Mar 10, 2026

Copy link
Copy Markdown

GH-145763 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Mar 10, 2026

bedevere-app Bot commented Mar 10, 2026

Copy link
Copy Markdown

GH-145764 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Mar 10, 2026
serhiy-storchaka added a commit that referenced this pull request Mar 10, 2026
…ith invalid format (GH-145744) (GH-145764)

Only set the format attribute after successful (re-)initialization.
(cherry picked from commit 3f33bf8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Mar 10, 2026
…ith invalid format (GH-145744) (GH-145763)

Only set the format attribute after successful (re-)initialization.
(cherry picked from commit 3f33bf8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
…th invalid format (pythonGH-145744)

Only set the format attribute after successful (re-)initialization.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL