mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #22824: Updated reprlib output format for sets to use set literals.
This commit is contained in:
parent
223bc2fe16
commit
ffd842e1d6
4 changed files with 36 additions and 21 deletions
|
@ -18,7 +18,7 @@ abbreviated displays of large or deeply nested containers::
|
|||
|
||||
>>> import reprlib
|
||||
>>> reprlib.repr(set('supercalifragilisticexpialidocious'))
|
||||
"set(['a', 'c', 'd', 'e', 'f', 'g', ...])"
|
||||
"{'a', 'c', 'd', 'e', 'f', 'g', ...}"
|
||||
|
||||
The :mod:`pprint` module offers more sophisticated control over printing both
|
||||
built-in and user defined objects in a way that is readable by the interpreter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue