[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError
Irit Katriel
report at bugs.python.org
Tue Oct 19 07:59:55 EDT 2021
Irit Katriel <iritkatriel at gmail.com> added the comment:
Reproduced on 3.11:
>>> from _struct import Struct
>>> s = Struct.__new__(Struct)
>>> s.unpack_from(b'asdf')
Assertion failed: (self->s_codes != NULL), function Struct_unpack_from_impl, file /Users/iritkatriel/src/cpython/Modules/_struct.c, line 1603.
zsh: abort ./python.exe
----------
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11 -Python 2.7, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34543>
_______________________________________
More information about the Python-bugs-list
mailing list