[Patches] [Patch #101751] Make 0.0**-2.0 raise ValueError (fixes hi-pri bug 115831)

noreply@sourceforge.net noreply@sourceforge.net
Tue, 3 Oct 2000 02:53:09 -0700


Patch #101751 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: Make 0.0**-2.0 raise ValueError (fixes hi-pri bug 115831)

Follow-Ups:

Date: 2000-Oct-03 02:53
By: ping

Comment:
This patch moves a couple of clauses for special cases
of pow() (where the base or exponent are zero or the
exponent is negative) so that they don't get missed.

This patch also adds some tests to Lib/test/test_pow.py
to ensure that any type of zero raised to any negative
power raises a ValueError.

Python 2.0b1 fails these tests as it stands; with the
patch added, it passes.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101751&group_id=5470