diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-16 07:12:44 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-16 07:12:44 (GMT) |
commit | 1f2ba4b6dad80f97aeecb5be8f35f44ca792c983 (patch) | |
tree | dc2c356b160e3769dc758b55f72eba4bdf2ec652 /Doc/library | |
parent | cdc11337a221d45d40989bc256dd6cd0eb4b6371 (diff) | |
download | cpython-1f2ba4b6dad80f97aeecb5be8f35f44ca792c983.zip cpython-1f2ba4b6dad80f97aeecb5be8f35f44ca792c983.tar.gz cpython-1f2ba4b6dad80f97aeecb5be8f35f44ca792c983.tar.bz2 |
Rename the repr module to reprlib.
Merged revisions 63357 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r63357 | alexandre.vassalotti | 2008-05-16 02:58:49 -0400 (Fri, 16 May 2008) | 2 lines
Changed references to the reprlib module to use its new name.
........
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/reprlib.rst (renamed from Doc/library/repr.rst) | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Doc/library/repr.rst b/Doc/library/reprlib.rst index 3f7fc22..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. @@ -62,10 +62,13 @@ which format specific object types. default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` for the others. + .. versionadded:: 2.4 + :attr:`maxset`, :attr:`maxfrozenset`, and :attr:`set`. + .. attribute:: Repr.maxlong - Maximum number of characters in the representation for an integer. Digits + Maximum number of characters in the representation for a long integer. Digits are dropped from the middle. The default is ``40``. @@ -129,5 +132,5 @@ for file objects could be added:: return `obj` aRepr = MyRepr() - print(aRepr.repr(sys.stdin)) # prints '<stdin>' + print aRepr.repr(sys.stdin) # prints '<stdin>' |