[Python-Dev] __del__ unexpectedly being called twice

Duncan Booth duncan.booth at suttoncourtenay.org.uk
Fri Aug 18 14:03:25 CEST 2006


"Terry Reedy" <tjreedy at udel.edu> wrote in
news:ec49m8$10q$1 at sea.gmane.org: 

> 
> "Duncan Booth" <duncan.booth at suttoncourtenay.org.uk> wrote in message 
> news:n2m-g.Xns9823615FCACE1duncanrcpcouk at 127.0.0.1...
>> There's a thread on comp.lang.python at the moment under the subject
>> "It is
>> __del__ calling twice for some instances?" which seems to show that
>> when releasing a long chain of old-style classes every 50th
>> approximately has its finaliser called twice. I've verified that this
>> happens on both Python
>> 1.4 and 1.5.
> 
> Should we assume you meant 2.4 and 2.5?
> 
Probably. 2.5b3 to be a bit more precise.



More information about the Python-Dev mailing list