'Dump all objects as a list of strings.'

def dump_objects(self):

    lines = []
    for (name, obj) in self.data.items():
        try:
            obj_repr = repr(obj)
        except (RuntimeError, TypeError):
            obj_repr = '<deleted>'
        lines.append('{}:    {}'.format(name, obj_repr))
    return lines
