On 04/09/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
>
> Is this on OSX? That test has been failing (because on that platform
> sqrt(-1) returns nan instead of raising ValueError) for years -- but
> the test is only run when run in verbose mode, which mostly hides the
> issue. Have you read the comment for the test?
Indeed, I am on OSX. Yes, I have read the comment for the test. Would the
following pseudocode be an acceptable fix for the problem:
if sys.platform == 'darwin' and math.sqrt(-1) == nan:
return
else:
try:
x = math.sqrt(-1)
except ValueError:
pass
...
or should I just not bother?
--
Cheers,
Hasan Diwan <[EMAIL PROTECTED]>
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com