Staging
v0.5.1
https://github.com/python/cpython
Revision c54d19043a595679f253a55e46fda2910f513c52 authored by Tim Peters on 06 October 2000, 00:36:09 UTC, committed by Tim Peters on 06 October 2000, 00:36:09 UTC
raise ValueError.  Checked in the patch as far as it went, but also changed
all of ints, longs and floats to raise ZeroDivisionError instead when raising
0 to a negative number.  This is what 754-inspired stds require, as the "true
result" is an infinity obtained from finite operands, i.e. it's a singularity.
Also changed float pow to not be so timid about using its square-and-multiply
algorithm.  Note that what math.pow does is unrelated to what builtin pow
does, and will still vary by platform.
1 parent 4779a0a
History
Tip revision: c54d19043a595679f253a55e46fda2910f513c52 authored by Tim Peters on 06 October 2000, 00:36:09 UTC
SF bug 115831 and Ping's SF patch 101751, 0.0**-2.0 returns inf rather than
Tip revision: c54d190
File Mode Size
Build
Compat
Contrib
Demo
Distributions
IDE scripts
Include
Lib
MPW
Modules
PlugIns
Python
Resources
Tools
Unsupported
mwerks
scripts
tclmods
HISTORY -rw-r--r-- 27.2 KB
ReadMe -rw-r--r-- 8.0 KB
ReadMe-dev -rw-r--r-- 1.0 KB
ReadMe-src -rw-r--r-- 563 bytes
Relnotes -rw-r--r-- 2.8 KB
_checkversion.py -rw-r--r-- 417 bytes
errno_unix.h -rw-r--r-- 307 bytes
fopenRF.c -rw-r--r-- 5.9 KB
mkapplet.py -rw-r--r-- 5.7 KB
mwerksglue.c -rw-r--r-- 566 bytes

ReadMe

back to top