]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Continue rolling back pep-3141 changes that changed behavior from 2.5. This
authorJeffrey Yasskin <jyasskin@gmail.com>
Sat, 5 Jan 2008 08:47:13 +0000 (08:47 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Sat, 5 Jan 2008 08:47:13 +0000 (08:47 +0000)
commit9871d8fe22566acf68bf336d04d3a1dbd51f3269
tree89540b4ff5f893e36c916534be2f07b5a7166fc1
parentf7476c4d463b5770b98d980bcd9bff3db981445d
Continue rolling back pep-3141 changes that changed behavior from 2.5. This
round included:
 * Revert round to its 2.6 behavior (half away from 0).
 * Because round, floor, and ceil always return float again, it's no
   longer necessary to have them delegate to __xxx___, so I've ripped
   that out of their implementations and the Real ABC. This also helps
   in implementing types that work in both 2.6 and 3.0: you return int
   from the __xxx__ methods, and let it get enabled by the version
   upgrade.
 * Make pow(-1, .5) raise a ValueError again.
13 files changed:
Doc/library/functions.rst
Doc/library/math.rst
Doc/library/stdtypes.rst
Doc/reference/expressions.rst
Lib/numbers.py
Lib/test/test_builtin.py
Lib/test/test_long.py
Lib/test/test_math.py
Modules/mathmodule.c
Objects/floatobject.c
Objects/intobject.c
Objects/longobject.c
Python/bltinmodule.c