summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pow.py
Commit message (Collapse)AuthorAgeFilesLines
* Update the code to better reflect recommended style:Fred Drake2000-12-121-2/+2
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-24/+24
|
* SF bug 115831 and Ping's SF patch 101751, 0.0**-2.0 returns inf rather thanTim Peters2000-10-061-30/+55
| | | | | | | | | | 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.
* Revise tests to support str(<long int object>) not appending "L".Fred Drake1999-12-231-12/+12
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-8/+8
|
* Use fuzzy comparison from test_support to compare outcome ofGuido van Rossum1997-11-241-1/+4
| | | | pow(x,y,z) to pow(x,y)%z.
* Test set for new pow() functionGuido van Rossum1994-08-121-0/+92