Mark Dickinson <[EMAIL PROTECTED]> added the comment:

I suspect that what's happening is that errno is being set to ERANGE
on a subnormal results;  this is somewhat ... um ... unorthodox.

In that case, the fix would be to raise OverflowError when errno is set to 
ERANGE and the function result x is larger than 1, say, in absolute value.  
(Currently the code ignores errno=ERANGE only when x == 0.)

Could someone with access to ia64 hardware test the attached patch?

----------
keywords: +patch
nosy: +marketdickinson
Added file: http://bugs.python.org/file10644/math_64.patch

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3118>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to