> 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__(
Thanks for your answers! They really helped me out!! :)
--
http://mail.python.org/mailman/listinfo/python-list
Il giorno 19/feb/2011, alle ore 05.10, moerchendiser2k3 ha scritto:
> Hi, I have some problems with Python and the garbage collection. In
> the following piece of code I create a simple gargabe collection but I
> am still wondering why the finalizers are never called - at least on
> exit of Py th
On Fri, 18 Feb 2011 20:49:09 -0800, Chris Rebert wrote:
> And following the pointer to gc.garbage's docs:
> http://docs.python.org/library/gc.html#gc.garbage : "Objects that have
> __del__() methods and are part of a reference cycle ***cause the entire
> reference cycle to be uncollectable*** [...
On Fri, Feb 18, 2011 at 8:10 PM, moerchendiser2k3
wrote:
> Hi, I have some problems with Python and the garbage collection. In
> the following piece of code I create a simple gargabe collection but I
> am still wondering why the finalizers are never called - at least on
> exit of Py they should be
Thanks a lot for any help!!!
Bye,
moerchendiser2k3
--
http://mail.python.org/mailman/listinfo/python-list
Hi, I have some problems with Python and the garbage collection. In
the following piece of code I create a simple gargabe collection but I
am still wondering why the finalizers are never called - at least on
exit of Py they should be called somehow. What do I miss here? I know,
there is no determin