summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/stdlib2.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-11-10 06:30:36 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-11-10 06:30:36 (GMT)
commitffd842e1d6736d48d45e741e2006a181c9ad4272 (patch)
tree58ee53b876b716f223aef88c21a89b50ee0819e3 /Doc/tutorial/stdlib2.rst
parent223bc2fe1653d21fc00ff8ebf1379cefadba808a (diff)
downloadcpython-ffd842e1d6736d48d45e741e2006a181c9ad4272.zip
cpython-ffd842e1d6736d48d45e741e2006a181c9ad4272.tar.gz
cpython-ffd842e1d6736d48d45e741e2006a181c9ad4272.tar.bz2
Issue #22824: Updated reprlib output format for sets to use set literals.
Diffstat (limited to 'Doc/tutorial/stdlib2.rst')
-rw-r--r--Doc/tutorial/stdlib2.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst
index 497c584..f7d2a0a 100644
--- a/Doc/tutorial/stdlib2.rst
+++ b/Doc/tutorial/stdlib2.rst
@@ -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.