[Python-bugs-list] [ python-Bugs-711019 ] math.log(0) differs from math.log(0L)
SourceForge.net
noreply@sourceforge.net
Thu, 27 Mar 2003 13:30:22 -0800
Bugs item #711019, was opened at 2003-03-27 15:30
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=711019&group_id=5470
Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Nobody/Anonymous (nobody)
Summary: math.log(0) differs from math.log(0L)
Initial Comment:
This is maybe a minor nit, but math.log(0) raises an OverflowError
(range error) while math.log(0L) raises a ValueError (domain error).
Seems to me they ought to behave the same. I noticed this in
2.2.2 but it's present in CVS. In 2.1, both return -Inf.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=711019&group_id=5470