Message75589
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 |
|
Date |
User |
Action |
Args |
2008-11-07 01:48:25 | christian.heimes | set | recipients:
+ christian.heimes, loewis, barry, amaury.forgeotdarc, vstinner |
2008-11-07 01:48:25 | christian.heimes | set | messageid: <1226022505.33.0.480862133361.issue4236@psf.upfronthosting.co.za> |
2008-11-07 01:48:24 | christian.heimes | link | issue4236 messages |
2008-11-07 01:48:23 | christian.heimes | create | |
|