Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/stdlib2.rst @ 47221:9fbc41abdd4b legacy-trunk
Revert the renaming of repr to reprlib.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Fri, 23 May 2008 05:03:59 +0000 |
| parents | 3df090ed4810 |
| children | 9acb314b9072 |
line wrap: on
line diff
--- a/Doc/tutorial/stdlib2.rst Fri May 23 04:32:43 2008 +0000 +++ b/Doc/tutorial/stdlib2.rst Fri May 23 05:03:59 2008 +0000 @@ -13,11 +13,11 @@ Output Formatting ================= -The :mod:`reprlib` module provides a version of :func:`repr` customized for +The :mod:`repr` module provides a version of :func:`repr` customized for abbreviated displays of large or deeply nested containers:: - >>> import reprlib - >>> reprlib.repr(set('supercalifragilisticexpialidocious')) + >>> import repr + >>> repr.repr(set('supercalifragilisticexpialidocious')) "set(['a', 'c', 'd', 'e', 'f', 'g', ...])" The :mod:`pprint` module offers more sophisticated control over printing both
