cleanup order
Johannes Zellner
johannes at zellner.org
Wed Jul 5 17:28:10 EDT 2000
Hi,
suppose I've
# fred provides `fun'
import fred
class Lola:
def __init__(self, x):
self.x = x
def __del__(self):
fred.fun(self.x)
x = Lola('hello')
# end of script
this doesn't work, because fred is not present any more
when x is destroyed. I don't know anything about python's
internals, but I guess the dynamical loaded shared object's
function table is destroyed (somehow) before x is destroyed.
Any comments ? (or even workarounds ?)
--
Johannes
More information about the Python-list
mailing list