PyWin browser has refcount bug.

Christian Tismer tismer at
Mon Nov 13 00:46:14 CET 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)

cheers - chris

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

More information about the Python-list mailing list