[issue38076] Make struct module PEP-384 compatible
Dino Viehland
report at bugs.python.org
Thu Jan 16 14:40:37 EST 2020
Dino Viehland <dinoviehland at gmail.com> added the comment:
This is a relatively simple repro of the underlying problem:
import _struct
s = _struct.Struct('i')
class C:
def __del__(self):
s.pack(42, 100)
_struct.x = C()
It's a little bit different in that it is actually causing the module to attempt to throw an exception instead of do a type check.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38076>
_______________________________________
More information about the Python-bugs-list
mailing list