Dino Viehland <dinoviehl...@gmail.com> added the comment:
And here's a variation which doesn't involve any instances from the module: import _struct class C: def __init__(self): self.pack = _struct.pack def __del__(self): self.pack('I', -42) _struct.x = C() ---------- _______________________________________ 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