[Python-Dev] _Py_RefTotal wrong in Py 2.2.3

Christian Tismer tismer at tismer.com
Mon Nov 17 11:18:26 EST 2003


Armin Rigo wrote:

...

> I found a few places that manipulate ob_refcnt directly without worrying about 
> keeping _Py_RefTotal or other debugging information in sync:
> 
> * classobject.c:instance_dealloc(), for __del__
> 
> * stringobject.c, for interned strings
> 
> * typeobject.c:slot_tp_del(), for __del__ too
> 
> I bet you could also find these easily, but maybe it should be regarded as a 
> bug list.  At any rate, the __del__ tricks will indeed make some counters 
> invalid.

Many thanks, this was very helpful.
I will probably fix those cases which affect my
code and submit patches. I was just not sure
whether this is a known problem, maybe already solved.

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at tismer.com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34  home +49 30 802 86 56  mobile +49 173 24 18 776
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/




More information about the Python-Dev mailing list