MCPcopy Index your code
hub / github.com/RustPython/RustPython / saferepr

Function saferepr

Lib/pprint.py:69–71  ·  view source on GitHub ↗

Version of repr() which can handle recursive data structures.

(object)

Source from the content-addressed store, hash-verified

67
68
69def saferepr(object):
70 """Version of repr() which can handle recursive data structures."""
71 return PrettyPrinter()._safe_repr(object, {}, None, 0)[0]
72
73
74def isreadable(object):

Callers

nothing calls this directly

Calls 2

PrettyPrinterClass · 0.85
_safe_reprMethod · 0.80

Tested by

no test coverage detected