[issue9186] math.log1p(-1.0) produces OverflowError; should be ValueError

2010-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in py3k in r82626. I'm going to leave this as a 'won't fix' for the maintenance branches, on the basis that the risk of breaking code by changing the exception type exceeds the benefit from the fix. -- resolution: -> fixed stage: patch review

[issue9186] math.log1p(-1.0) produces OverflowError; should be ValueError

2010-07-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9186] math.log1p(-1.0) produces OverflowError; should be ValueError

2010-07-07 Thread Mark Dickinson
New submission from Mark Dickinson : >>> from math import log1p >>> log1p(-1.0) Traceback (most recent call last): File "", line 1, in OverflowError: math range error This should be a ValueError instead. (Thanks Benjamin for noticing this.) -- assignee: mark.dickinson components: Ex