Dino Viehland <dinoviehl...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue38076> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com