Staging
v0.5.1
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
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
SF bug 115831 and Ping's SF patch 101751, 0.0**-2.0 returns inf rather than
Tip revision: c54d190
File | Mode | Size |
---|---|---|
.cvsignore | -rw-r--r-- | 87 bytes |
BUILDno.txt | -rw-r--r-- | 1.8 KB |
_socket.dsp | -rwxr-xr-x | 4.0 KB |
_sre.dsp | -rwxr-xr-x | 7.6 KB |
_tkinter.dsp | -rw-r--r-- | 8.6 KB |
bsddb.dsp | -rw-r--r-- | 8.4 KB |
mmap.dsp | -rw-r--r-- | 3.8 KB |
parser.dsp | -rw-r--r-- | 7.7 KB |
pcbuild.dsw | -rw-r--r-- | 4.8 KB |
pyexpat.dsp | -rwxr-xr-x | 7.9 KB |
python.dsp | -rw-r--r-- | 6.7 KB |
python20.dsp | -rw-r--r-- | 36.3 KB |
python20.wse | -rw-r--r-- | 39.2 KB |
pythonw.dsp | -rw-r--r-- | 7.3 KB |
readme.txt | -rw-r--r-- | 4.0 KB |
rt.bat | -rwxr-xr-x | 323 bytes |
select.dsp | -rwxr-xr-x | 4.1 KB |
ucnhash.dsp | -rw-r--r-- | 3.7 KB |
unicodedata.dsp | -rwxr-xr-x | 4.1 KB |
w9xpopen.dsp | -rw-r--r-- | 3.4 KB |
winreg.dsp | -rw-r--r-- | 4.0 KB |
winsound.dsp | -rw-r--r-- | 3.8 KB |
zlib.dsp | -rw-r--r-- | 4.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...