Ok, thanks! It's submitted as issue 7947.

- David

-----Original Message-----
From: Mark Dickinson [mailto:dicki...@gmail.com] 
Sent: Tuesday, February 16, 2010 2:15 PM
To: David DiCato
Cc: python-dev@python.org
Subject: Re: [Python-Dev] math.hypot, complex.__abs__, and documentation

On Tue, Feb 16, 2010 at 9:19 PM, David DiCato <ddic...@microsoft.com> wrote:
> I have a minor concern about certain corner cases with math.hypot and
> complex.__abs__, namely when one component is infinite and one is not a
> number.

<examples snipped>

> as well, and FWIW, I personally agree with this convention. However, the
> math module’s documentation for both 2.6 and 3.1 states, “All functions
> return a quiet NaN if at least one of the args is NaN.”

Yes;  this is a doc bug.  Please could you open an issue on
http://bugs.python.org
?

> math.pow(1.0, nan) is another such exception to the rule. Perhaps the
> documentation should be updated to reflect this.

Yes, it should.  Thanks!

Mark

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to