MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / isreadable

Function isreadable

tools/python-3.11.9-amd64/Lib/pprint.py:72–74  ·  view source on GitHub ↗

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

(object)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

PrettyPrinterClass · 0.85
_safe_reprMethod · 0.45

Tested by

no test coverage detected