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
.cvsignore -rw-r--r-- 17 bytes
Makefile.in -rw-r--r-- 2.6 KB
abstract.c -rw-r--r-- 42.3 KB
bufferobject.c -rw-r--r-- 11.1 KB
classobject.c -rw-r--r-- 40.7 KB
cobject.c -rw-r--r-- 3.6 KB
complexobject.c -rw-r--r-- 10.8 KB
dictobject.c -rw-r--r-- 27.6 KB
fileobject.c -rw-r--r-- 27.3 KB
floatobject.c -rw-r--r-- 16.7 KB
frameobject.c -rw-r--r-- 8.4 KB
funcobject.c -rw-r--r-- 5.6 KB
intobject.c -rw-r--r-- 18.0 KB
listobject.c -rw-r--r-- 38.3 KB
longobject.c -rw-r--r-- 35.7 KB
methodobject.c -rw-r--r-- 5.0 KB
moduleobject.c -rw-r--r-- 4.7 KB
object.c -rw-r--r-- 27.4 KB
rangeobject.c -rw-r--r-- 4.6 KB
sliceobject.c -rw-r--r-- 3.6 KB
stringobject.c -rw-r--r-- 73.6 KB
tupleobject.c -rw-r--r-- 10.9 KB
typeobject.c -rw-r--r-- 1.3 KB
unicodectype.c -rw-r--r-- 8.5 KB
unicodeobject.c -rw-r--r-- 124.4 KB
unicodetype_db.h -rw-r--r-- 37.1 KB
xxobject.c -rw-r--r-- 2.4 KB

back to top