]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #26983: float() now always return an instance of exact float.
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 3 Jun 2016 18:42:55 +0000 (21:42 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 3 Jun 2016 18:42:55 +0000 (21:42 +0300)
commit16931c3559689cfa9d98e3b56e612b7e1e635b7a
treedd63cb2a5960a03eeb2a9560222ffebe03965817
parentbb7f7327fea85d73e13950e83e5e39d57f7488df
Issue #26983: float() now always return an instance of exact float.
The deprecation warning is emitted if __float__ returns an instance of
a strict subclass of float.  In a future versions of Python this can
be an error.
Lib/test/test_float.py
Lib/test/test_getargs2.py
Misc/NEWS
Objects/abstract.c
Objects/floatobject.c