[Python-3000-checkins] r64615 - in python/branches/py3k/Doc: reference/datamodel.rst whatsnew/3.0.rst

mark.summerfield python-3000-checkins at python.org
Tue Jul 1 16:42:32 CEST 2008


Author: mark.summerfield
Date: Tue Jul  1 16:42:30 2008
New Revision: 64615

Log:
- removed sentence about the new free format floating-point representation
since I believe that's been abandoned.
- added __round__() to datamodel page's list of numeric special methods.



Modified:
   python/branches/py3k/Doc/reference/datamodel.rst
   python/branches/py3k/Doc/whatsnew/3.0.rst

Modified: python/branches/py3k/Doc/reference/datamodel.rst
==============================================================================
--- python/branches/py3k/Doc/reference/datamodel.rst	(original)
+++ python/branches/py3k/Doc/reference/datamodel.rst	Tue Jul  1 16:42:30 2008
@@ -1803,14 +1803,17 @@
 .. method:: object.__complex__(self)
             object.__int__(self)
             object.__float__(self)
+            object.__round__(self, [,n])
 
    .. index::
       builtin: complex
       builtin: int
       builtin: float
+      builtin: round
 
-   Called to implement the built-in functions :func:`complex`, :func:`int`
-   and :func:`float`.  Should return a value of the appropriate type.
+   Called to implement the built-in functions :func:`complex`,
+   :func:`int`, :func:`float` and :func:`round`.  Should return a value
+   of the appropriate type.
 
 
 .. method:: object.__index__(self)

Modified: python/branches/py3k/Doc/whatsnew/3.0.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.0.rst	(original)
+++ python/branches/py3k/Doc/whatsnew/3.0.rst	Tue Jul  1 16:42:30 2008
@@ -342,10 +342,6 @@
 
 * :func:`exec` is now a function.
 
-* There is a new free format floating point representation, which is based on
-  "Floating-Point Printer Sample Code", by Robert G. Burger.  ``repr(11./5)``
-  now returns ``2.2`` instead of ``2.2000000000000002``.
-
 * The :meth:`__oct__` and :meth:`__hex__` special methods are removed --
   :func:`oct` and :func:`hex` use :meth:`__index__` now to convert the argument
   to an integer.


More information about the Python-3000-checkins mailing list