Lines Matching refs:Repr
25 .. class:: Repr()
35 This is an instance of :class:`Repr` which is used to provide the :func:`.repr`
42 This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string
49 Repr Objects
52 :class:`Repr` instances provide several attributes which can be used to provide
57 .. attribute:: Repr.maxlevel
62 .. attribute:: Repr.maxdict
63 Repr.maxlist
64 Repr.maxtuple
65 Repr.maxset
66 Repr.maxfrozenset
67 Repr.maxdeque
68 Repr.maxarray
78 .. attribute:: Repr.maxlong
84 .. attribute:: Repr.maxstring
92 .. attribute:: Repr.maxother
95 formatting method is available on the :class:`Repr` object. It is applied in a
99 .. method:: Repr.repr(obj)
105 .. method:: Repr.repr1(obj, level)
113 .. method:: Repr.repr_TYPE(obj, level)
125 Subclassing Repr Objects
128 The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of
129 :class:`Repr` to add support for additional built-in object types or to modify
136 class MyRepr(reprlib.Repr):