MCPcopy Index your code
hub / github.com/python/cpython / isreadable

Function isreadable

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

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

(object)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

PrettyPrinterClass · 0.85
_safe_reprMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…