[New-bugs-announce] [issue1918] weak references are removed before __del__ is called.
Jeff Foran
report at bugs.python.org
Wed Jan 23 19:34:16 CET 2008
New submission from Jeff Foran:
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
----------
components: Interpreter Core
messages: 61597
nosy: jforan
severity: normal
status: open
title: weak references are removed before __del__ is called.
type: behavior
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1918>
__________________________________
More information about the New-bugs-announce
mailing list