summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Summerfield <list@qtrac.plus.com>2008-07-01 14:42:30 (GMT)
committerMark Summerfield <list@qtrac.plus.com>2008-07-01 14:42:30 (GMT)
commit9557f60f9163b0cedd416f7ddf29f14093c7b210 (patch)
treea535836e9692c437df3c50cf598ad46e65f0578e /Doc
parent8a250aeb2127683edb2bb10fdc529b94cd06afe3 (diff)
downloadcpython-9557f60f9163b0cedd416f7ddf29f14093c7b210.zip
cpython-9557f60f9163b0cedd416f7ddf29f14093c7b210.tar.gz
cpython-9557f60f9163b0cedd416f7ddf29f14093c7b210.tar.bz2
- 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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/datamodel.rst7
-rw-r--r--Doc/whatsnew/3.0.rst4
2 files changed, 5 insertions, 6 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 4e24df7..5b220d0 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -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)
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst
index 7611891..15c9463 100644
--- a/Doc/whatsnew/3.0.rst
+++ b/Doc/whatsnew/3.0.rst
@@ -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.