(self, c)
Return some info --- useful to spot problems with refcounting
Return some info --- useful to spot problems with refcounting
Return some info --- useful to spot problems with refcounting
def debug_info(self, c):
        '''
        Return some info --- useful to spot problems with refcounting
        '''
        # Perhaps include debug info about 'c'?
        with self.mutex:
            result = []
            keys = list(self.id_to_refcount.keys())
            keys.sort()
            for ident in keys:
                if ident != '0':
                    result.append('  %s:       refcount=%s\n    %s' %
                                  (ident, self.id_to_refcount[ident],
                                   str(self.id_to_obj[ident][0])[:75]))
            return '\n'.join(result)
def debug_info ( self , c ) : # Perhaps include debug info about 'c'? with self . mutex : result = [ ] keys = list ( self . id_to_refcount . keys ( ) ) keys . sort ( ) for ident in keys : if ident != '0' : result . append ( '  %s:       refcount=%s\n    %s' % ( ident , self . id_to_refcount [ ident ] , str ( self . id_to_obj [ ident ] [ 0 ] ) [ : 75 ] ) ) return '\n' . join ( result )