def inspectGeneral(self, current): for ii, object in enumerate(gc.get_referents(current.object)): if type(object) is type: continue yield self.Record(object, '%s/%d' % (current.path, ii))