[Python-checkins] r84517 - python/branches/py3k/Doc/whatsnew/3.2.rst
raymond.hettinger
python-checkins at python.org
Sun Sep 5 07:56:44 CEST 2010
Author: raymond.hettinger
Date: Sun Sep 5 07:56:44 2010
New Revision: 84517
Log:
Add an example
Modified:
python/branches/py3k/Doc/whatsnew/3.2.rst
Modified: python/branches/py3k/Doc/whatsnew/3.2.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.2.rst (original)
+++ python/branches/py3k/Doc/whatsnew/3.2.rst Sun Sep 5 07:56:44 2010
@@ -154,7 +154,12 @@
* 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`).
More information about the Python-checkins
mailing list