This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients amaury.forgeotdarc, barry, christian.heimes, loewis, vstinner
Date 2008-11-07.01:48:23
SpamBayes Score 7.823541e-09
Marked as misclassified No
Message-id <1226022505.33.0.480862133361.issue4236@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-11-07 01:48:25christian.heimessetrecipients: + christian.heimes, loewis, barry, amaury.forgeotdarc, vstinner
2008-11-07 01:48:25christian.heimessetmessageid: <1226022505.33.0.480862133361.issue4236@psf.upfronthosting.co.za>
2008-11-07 01:48:24christian.heimeslinkissue4236 messages
2008-11-07 01:48:23christian.heimescreate