From bb734c6707f531e0eddd0f48aba822e092c6190d Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 5 Sep 2010 05:56:44 +0000 Subject: [PATCH] Add an example --- Doc/whatsnew/3.2.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 48c0c587fdb..26bac21ae08 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`).