You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Struct.__init__() can leave the Struct object in inconsistent state #145743
Since Struct.__init__() first saves the format in s_format, then sets s_code used to pack/unpack, after calling it with invalid format argument it leaves the Struct object in inconsistent state -- format returns the new (invalid) format, while packing/unpacking use old format (if it was set). This happens only when call it explicitly, which will be deprecated (see #143715). If simply call Struct() with invalid argument, you will not get a broken object, you will get an error.
Activity
pythongh-145743: Fix inconsistancy after calling Struct.__init__() wi…
gh-145743: Fix inconsistency after calling Struct.__init__() with inv…
pythongh-145743: Fix inconsistency after calling Struct.__init__() wi…
pythongh-145743: Fix inconsistency after calling Struct.__init__() wi…
[3.13] gh-145743: Fix inconsistency after calling Struct.__init__() w…
[3.14] gh-145743: Fix inconsistency after calling Struct.__init__() w…
pythongh-145743: Fix inconsistency after calling Struct.__init__() wi…