Christian Heimes <[EMAIL PROTECTED]> added the comment: Strange, I can't reproduce the problem with any Python version. Even py3k doesn't crash with either "import imp" and "import warnings".
$ cat ../issue4236.py class Crasher(object): def __del__(self): print("__del__ called") import imp crasher = Crasher() $ python2.4 issue4236.py __del__ called Exception exceptions.ImportError: 'No module named imp' in <bound method Crasher.__del__ of <__main__.Crasher object at 0x7f0e6c4e44d0>> ignored $ python2.5 issue4236.py __del__ called Exception exceptions.ImportError: 'No module named imp' in <bound method Crasher.__del__ of <__main__.Crasher object at 0x7fbbde5ef1d0>> ignored $ python2.6 issue4236.py __del__ called Exception ImportError: 'No module named imp' in <bound method Crasher.__del__ of <__main__.Crasher object at 0x7f3d810dbf90>> ignored $ py3k/python issue4236.py __del__ called Exception ImportError: 'No module named imp' in <bound method Crasher.__del__ of <__main__.Crasher object at 0x9ab3e0>> ignored _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4236> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com