reprlib
reprlib — Alternate repr() implementation
Source code: Lib/reprlib.py
The reprlib
module provides a means for producing object representations with limits on the size of the resulting strings. This is used in the Python debugger and may be useful in other contexts as well.
This module provides a class, an instance, and a function:
-
class reprlib.Repr
-
Class which provides formatting services useful in implementing functions similar to the built-in 登录查看完整内容