diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-16 06:58:49 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-16 06:58:49 (GMT) |
commit | 50a1acb2abafbe7b99ad57ca566c1ff9bb8abf0f (patch) | |
tree | fc9ad776ef967b99c3c40b43ec7a90e960378fed /Doc | |
parent | 95d97c7390beb72083dac5a801cadfb4c1379fe5 (diff) | |
download | cpython-50a1acb2abafbe7b99ad57ca566c1ff9bb8abf0f.zip cpython-50a1acb2abafbe7b99ad57ca566c1ff9bb8abf0f.tar.gz cpython-50a1acb2abafbe7b99ad57ca566c1ff9bb8abf0f.tar.bz2 |
Changed references to the reprlib module to use its new name.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/reprlib.rst (renamed from Doc/library/repr.rst) | 6 | ||||
-rw-r--r-- | Doc/tutorial/stdlib2.rst | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/repr.rst b/Doc/library/reprlib.rst index 493e2b3..84fd6fb 100644 --- a/Doc/library/repr.rst +++ b/Doc/library/reprlib.rst @@ -1,13 +1,13 @@ -:mod:`repr` --- Alternate :func:`repr` implementation +:mod:`reprlib` --- Alternate :func:`repr` implementation ===================================================== -.. module:: repr +.. module:: reprlib :synopsis: Alternate repr() implementation with size limits. .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org> -The :mod:`repr` module provides a means for producing object representations +The :mod:`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. diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst index 9da5213..79044f9 100644 --- a/Doc/tutorial/stdlib2.rst +++ b/Doc/tutorial/stdlib2.rst @@ -13,11 +13,11 @@ programming needs. These modules rarely occur in small scripts. Output Formatting ================= -The :mod:`repr` module provides a version of :func:`repr` customized for +The :mod:`reprlib` module provides a version of :func:`repr` customized for abbreviated displays of large or deeply nested containers:: - >>> import repr - >>> repr.repr(set('supercalifragilisticexpialidocious')) + >>> import reprlib + >>> reprlib.repr(set('supercalifragilisticexpialidocious')) "set(['a', 'c', 'd', 'e', 'f', 'g', ...])" The :mod:`pprint` module offers more sophisticated control over printing both |