Mercurial > cpython-lru_cache-weakref
diff Python/thread.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 | 7c09b66f04bd |
| children | eefe4450f773 132d908471c8 |
