Message118408
Interpreter: Python 3.1.2
Sample:
===== first.py =====
import sys
import second
if 'second' in sys.modules:
print ('in sys modules')
del sys.modules['second']
del second
===== second.py =====
class A:
def __init__(self):
print('created')
def __del__(self):
print('destroyed')
a = A()
---------------------------------------------
Result: 'destroyed' isn't printed
With Python 2.6.5 it worked fine |
|
Date |
User |
Action |
Args |
2010-10-12 10:09:28 | Valery.Lesin | set | recipients:
+ Valery.Lesin |
2010-10-12 10:09:28 | Valery.Lesin | set | messageid: <1286878168.64.0.888099098753.issue10068@psf.upfronthosting.co.za> |
2010-10-12 10:09:26 | Valery.Lesin | link | issue10068 messages |
2010-10-12 10:09:25 | Valery.Lesin | create | |
|