Issue #22824: Updated reprlib output format for sets to use set literals.

This commit is contained in:
Raymond Hettinger 2014-11-09 22:30:36 -08:00
parent 223bc2fe16
commit ffd842e1d6
4 changed files with 36 additions and 21 deletions

View file

@ -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.