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 jforan
Recipients jforan
Date 2008-01-23.18:34:14
SpamBayes Score 0.5373267
Marked as misclassified No
Message-id <1201113256.5.0.101842324307.issue1918@psf.upfronthosting.co.za>
In-reply-to
Content
Not sure where to put example code, but here it goes:

import weakref
class MyObj(object):
	def __init__(self):
		self.ref = weakref.ref(self)
	def __del__(self):
		print "HERE123", self.ref()
o = MyObj()
o = None
History
Date User Action Args
2008-01-23 18:34:16jforansetspambayes_score: 0.537327 -> 0.5373267
recipients: + jforan
2008-01-23 18:34:16jforansetspambayes_score: 0.537327 -> 0.537327
messageid: <1201113256.5.0.101842324307.issue1918@psf.upfronthosting.co.za>
2008-01-23 18:34:14jforanlinkissue1918 messages
2008-01-23 18:34:14jforancreate