diff --git a/var_dump/_var_dump.py b/var_dump/_var_dump.py index 0abb951..b08d981 100644 --- a/var_dump/_var_dump.py +++ b/var_dump/_var_dump.py @@ -58,7 +58,10 @@ def display(o, space, num, key, typ, proret): elif isinstance(o, object): st += "object(%s) (%s)" - l.append(o.__class__.__name__) + try: + l.append(str(o)) + except: + l.append(o.__class__.__name__) try: l.append(len(o.__dict__)) except AttributeError: