]> granicus.if.org Git - python/commitdiff
- removed sentence about the new free format floating-point representation
authorMark Summerfield <list@qtrac.plus.com>
Tue, 1 Jul 2008 14:42:30 +0000 (14:42 +0000)
committerMark Summerfield <list@qtrac.plus.com>
Tue, 1 Jul 2008 14:42:30 +0000 (14:42 +0000)
since I believe that's been abandoned.
- added __round__() to datamodel page's list of numeric special methods.

Doc/reference/datamodel.rst
Doc/whatsnew/3.0.rst

index 4e24df73ab49eeaf42056b1101dcaecfff558b09..5b220d0f4e3d179a1f23a66499452993d43288ff 100644 (file)
@@ -1803,14 +1803,17 @@ left undefined.
 .. 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)
index 7611891306f643fd23e5d9facb980f2f2d7c2a3a..15c946368e7dcf2e5a918e3aff8bc03fcaf756d1 100644 (file)
@@ -342,10 +342,6 @@ language and built-in functions.
 
 * :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.