PyWin browser has refcount bug.

Christian Tismer tismer at tismer.com
Sun Nov 12 18:46:14 EST 2000


Hi Mark,

I found the following:
While I thought it was due to Stackless, it wasn't.
After browsing a sequence, its refcount is increased.

>>> x=range(3)
>>> import sys
>>> g=sys.getrefcount
>>> g(x)
2   # browse x, and then:
>>> g(x)
3   # browse x, and then:
>>> g(x)
4	

cheers - chris

-- 
Christian Tismer             :^)   <mailto:tismer at tismer.com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com




More information about the Python-list mailing list