> Wild guess:
> maybe when python exits they are called but sys.stdout has already been 
> closed and nothing gets written on it anymore.

Certainly NOT.


class Foo():
    def __init__(self):
        self.b = Bar(self)
    def __del__(self):
        print "Free Foo"

class Bar():
    def __init__(self, f):
        self.f = f
    def __del__(self):
        print "Free Bar"


f = Foo()
print f.b.f.b.f.b.f.b.f.b.f.b.f.b.f.b.f
print f.b.f.b.f.b.f.b.f.b.f.b.f.b.f.b.f.b



*********Console output:***********

<__main__.Foo instance at 0x00AF7328>
<__main__.Bar instance at 0x00AF7350>

D:\v3>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to