rich comparison fscks up reference count?

Gerhard Häring gerhardhaering at googlemail.com
Mon Apr 12 16:30:34 CEST 2010


Can be run like this:

ghaering at ws124~/src/gh/test$ python3 setup.py build_ext --inplace
running build_ext
building 'foo' extension
gcc -fno-strict-aliasing -g -fwrapv -O0 -Wall -Wstrict-prototypes -
arch i386 -m32 -I/opt/jetstream/include/python3.1 -c foo.c -o build/
temp.macosx-10.4-i386-3.1-pydebug/foo.o
foo.c: In function ‘PyInit_foo’:
foo.c:109: warning: return makes pointer from integer without a cast
gcc -bundle -undefined dynamic_lookup -arch i386 -m32 build/
temp.macosx-10.4-i386-3.1-pydebug/foo.o -o /Users/ghaering/src/gh/test/
foo.so
[50367 refs]
ghaering at ws124~/src/gh/test$ python3 setup.py test
running test
total refcount  65304
total refcount  65305
total refcount  65304
total refcount  65303
total refcount  65302
total refcount  65301
total refcount  65300
total refcount  65299
total refcount  65298
total refcount  65297
[45322 refs]
ghaering at ws124~/src/gh/test$



More information about the Python-list mailing list