[Python-Dev] math.hypot, complex.__abs__, and documentation

2010-02-16 Thread David DiCato
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. If we execute the following code: import math inf = float('inf') nan = float('nan') print math.hypot(inf, nan) print abs(complex(nan, inf)) ... t

Re: [Python-Dev] math.hypot, complex.__abs__, and documentation

2010-02-16 Thread David DiCato
Ok, thanks! It's submitted as issue 7947. - David -Original Message- From: Mark Dickinson [mailto:[email protected]] Sent: Tuesday, February 16, 2010 2:15 PM To: David DiCato Cc: [email protected] Subject: Re: [Python-Dev] math.hypot, complex.__abs__, and documentation On Tue

Re: [Python-Dev] math.hypot, complex.__abs__, and documentation

2010-02-16 Thread David DiCato
[email protected]] On Behalf Of Steven D'Aprano Sent: Tuesday, February 16, 2010 2:47 PM To: [email protected] Subject: Re: [Python-Dev] math.hypot, complex.__abs__, and documentation On Wed, 17 Feb 2010 08:19:00 am David DiCato wrote: > I have a minor concern about ce