Re: core dumps in printobject()

Andy Bensky (ab@infoseek.com)
Thu, 10 Mar 1994 17:32:32 +0800

oops. it looks like this problem was my fault. An older version of
this C code used a different object management package that returned
handles to objects as char strings that needed to be freed when no
longer needed. When I switched it to Python and turned the object handles
into object * types I missed removing one of the free calls.

I am now assuming, from looking at the code, that newlistobject and
newinstanceobject return handles that do not need to be INCREF'd until
and unless a copy is made and associated in another location.

Is there some way from within Python to examine an objects reference count?
What about for a builtin type such as a list? This info might have helped
me to track down this problem sooner.

Sorry to waste bandwith with my earlier post :(

andy