]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145743: Fix inconsistency after calling Struct.__init__() with invalid format...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 10 Mar 2026 16:29:23 +0000 (18:29 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2026 16:29:23 +0000 (18:29 +0200)
commit3f33bf83e8496737b86333bc9ec55dc3ccb3faca
tree1d9f8bacb6c5b6b24c375ba3c44db9acb1a6bb97
parentbf4017b16149ba17d723abacfe93aec79b2235fe
gh-145743: Fix inconsistency after calling Struct.__init__() with invalid format (GH-145744)

Only set the format attribute after successful (re-)initialization.
Lib/test/test_struct.py
Modules/_struct.c