Version of repr() which can handle recursive data structures.
>>> pprint.saferepr(stuff) "[<Recursion on list with id=...>, 'spam', 'eggs', 'lumberjack', 'knights', 'ni']"
pprint/saferepr
saferepr