gh-145850: Change some implementation details in struct.Struct (GH-145851)
* calling it with non-ASCII string format will now raise a ValueError instead of UnicodeEncodeError * calling it with non-ASCII bytes format will now raise a ValueError instead of struct.error * getting the format attribute of uninitialized object will now raise an AttributeError instead of RuntimeError.
S
Serhiy Storchaka committed
962fb872ebd97ab6ab808a1b8e2034577e5501bf
Parent: e1c2246
Committed by GitHub <noreply@github.com>
on 3/13/2026, 11:05:41 AM