ID EN
Pretty Print

isreadable

Python 3.11

Determine if the formatted representation of object is “readable”, or can be used to reconstruct the value using eval(). This always returns False for recursive objects.

Syntax

PYTHON
pprint.isreadable(object)

Examples

Example 1
PYTHON
>>> pprint.isreadable(stuff)
False

See Also

eval()