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

Function isreadable

Lib/pprint.py:74–76  ·  view source on GitHub ↗

Determine if saferepr(object) is readable by eval().

(object)

Source from the content-addressed store, hash-verified

72
73
74def isreadable(object):
75 """Determine if saferepr(object) is readable by eval()."""
76 return PrettyPrinter()._safe_repr(object, {}, None, 0)[1]
77
78
79def isrecursive(object):

Callers

nothing calls this directly

Calls 2

PrettyPrinterClass · 0.85
_safe_reprMethod · 0.80

Tested by

no test coverage detected