Lines Matching refs:Repr
20 .. class:: Repr()
29 This is an instance of :class:`Repr` which is used to provide the
37 This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string
71 Repr Objects
74 :class:`Repr` instances provide several attributes which can be used to provide
79 .. attribute:: Repr.maxlevel
84 .. attribute:: Repr.maxdict
85 Repr.maxlist
86 Repr.maxtuple
87 Repr.maxset
88 Repr.maxfrozenset
89 Repr.maxdeque
90 Repr.maxarray
97 .. attribute:: Repr.maxlong
103 .. attribute:: Repr.maxstring
111 .. attribute:: Repr.maxother
114 formatting method is available on the :class:`Repr` object. It is applied in a
118 .. method:: Repr.repr(obj)
124 .. method:: Repr.repr1(obj, level)
132 .. method:: Repr.repr_TYPE(obj, level)
144 Subclassing Repr Objects
147 The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of
148 :class:`Repr` to add support for additional built-in object types or to modify
155 class MyRepr(reprlib.Repr):