Commit f533f7c4 authored by Raymond Hettinger's avatar Raymond Hettinger

Add an example

parent d64ca9c5
...@@ -154,7 +154,12 @@ Some smaller changes made to the core Python language are: ...@@ -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 * 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 :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 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`). (Proposed and implemented by Mark Dickinson; :issue:`9337`).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment