Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 44488:94eeaeeb3ce9 legacy-trunk
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.
| author | Jeffrey Yasskin <jyasskin@gmail.com> |
|---|---|
| date | Sat, 05 Jan 2008 08:47:13 +0000 |
| parents | c218d1ac916e |
| children | 599f22a349a2 |
comparison
equal
deleted
inserted
replaced
| 44487:33a0ae70670f | 44488:94eeaeeb3ce9 |
|---|
