Comment 1 for bug 1183768

Revision history for this message
Wichert Akkerman (wichert) wrote :

I ran into this as well. I modified my copy of objgraph to always use a small utility function to build the dotted name for a type:

def _typename(o):
    t = type(o)
    m = getattr(t, '__module__' '')
    if m:
        return '%s.%s' % (m, t.__name__)
    else:
        return t.__name__

And modified all code using type(o).__name__ to use _typename(o) instead.