diff options
author | Mark Summerfield <list@qtrac.plus.com> | 2008-07-01 14:42:30 (GMT) |
---|---|---|
committer | Mark Summerfield <list@qtrac.plus.com> | 2008-07-01 14:42:30 (GMT) |
commit | 9557f60f9163b0cedd416f7ddf29f14093c7b210 (patch) | |
tree | a535836e9692c437df3c50cf598ad46e65f0578e /Doc/reference/datamodel.rst | |
parent | 8a250aeb2127683edb2bb10fdc529b94cd06afe3 (diff) | |
download | cpython-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/reference/datamodel.rst')
-rw-r--r-- | Doc/reference/datamodel.rst | 7 |
1 files changed, 5 insertions, 2 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) |