mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Changed references to the reprlib module to use its new name.
This commit is contained in:
parent
95d97c7390
commit
50a1acb2ab
12 changed files with 28 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue