summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-05 05:56:44 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-05 05:56:44 (GMT)
commitbb734c6707f531e0eddd0f48aba822e092c6190d (patch)
treee220d65e73c169c9776e57317430d11ad5939a29 /Doc
parentdb6b62e7569cea59e211a3d9d6a1a0e76e576e8c (diff)
downloadcpython-bb734c6707f531e0eddd0f48aba822e092c6190d.zip
cpython-bb734c6707f531e0eddd0f48aba822e092c6190d.tar.gz
cpython-bb734c6707f531e0eddd0f48aba822e092c6190d.tar.bz2
Add an example
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.2.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 48c0c58..26bac21 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -154,7 +154,12 @@ Some smaller changes made to the core Python language are:
* The :func:`str` of a float or complex number is now the same as it
:func:`repr`. Previously, the :func:`str` form was shorter but that just
caused confusion and is no longer needed now that we the shortest possible
- :func:`repr` is displayed by default.
+ :func:`repr` is displayed by default::
+
+ >>> repr(math.pi)
+ '3.141592653589793'
+ >>> str(math.pi)
+ '3.141592653589793'
(Proposed and implemented by Mark Dickinson; :issue:`9337`).