Lines Matching refs:repr
1 :mod:`repr` --- Alternate :func:`repr` implementation
4 .. module:: repr
5 :synopsis: Alternate repr() implementation with size limits.
10 The :mod:`repr` module has been renamed to :mod:`reprlib` in Python 3. The
14 **Source code:** :source:`Lib/repr.py`
18 The :mod:`repr` module provides a means for producing object representations
28 similar to the built-in :ref:`repr() <func-repr>`; size limits for different
35 This is an instance of :class:`Repr` which is used to provide the :func:`.repr`
37 the size limits used by :func:`.repr` and the Python debugger.
40 .. function:: repr(obj)
42 This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string
99 .. method:: Repr.repr(obj)
101 The equivalent to the built-in :ref:`repr() <func-repr>` that uses the
107 Recursive implementation used by :meth:`.repr`. This uses the type of *obj* to
133 import repr as reprlib
141 return repr(obj)
144 print aRepr.repr(sys.stdin) # prints '<stdin>'