PyDocs

Nav

Data Types

Repr.indent

reprlib

attribute of Repr · Added in 3.12
If this attribute is set to None (the default), the output is formatted with no line breaks or indentation, like the standard repr(). For example:
1 Example
>>> aRepr.indent = '-->'
>>> print(aRepr.repr(example))
[
-->1,
-->'spam',
-->{
-->-->'a': 2,
-->-->'b': 'spam eggs',
-->-->'c': {
-->-->-->3: 4.5,
-->-->-->6: [],
-->-->},
-->},
-->'ham',
]
from the Python docs
See Also
No see-alsos for reprlib/Repr.indent
0 Notes
No notes for Repr.indent