PyDocs

Nav

Data Types

saferepr

pprint

function (source)
  • saferepr(object)
Version of repr() which can handle recursive data structures.
1 Example
>>> pprint.saferepr(stuff)
"[<Recursion on list with id=...>, 'spam', 'eggs', 'lumberjack', 'knights', 'ni']"
from the Python docs
See Also
No see-alsos for pprint/saferepr
0 Notes
No notes for saferepr