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 Valery.Lesin
Recipients Valery.Lesin
Date 2010-10-12.10:09:25
SpamBayes Score 0.000735409
Marked as misclassified No
Message-id <1286878168.64.0.888099098753.issue10068@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-10-12 10:09:28Valery.Lesinsetrecipients: + Valery.Lesin
2010-10-12 10:09:28Valery.Lesinsetmessageid: <1286878168.64.0.888099098753.issue10068@psf.upfronthosting.co.za>
2010-10-12 10:09:26Valery.Lesinlinkissue10068 messages
2010-10-12 10:09:25Valery.Lesincreate