Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: a.index(float('nan')) fails

Reply
Thread Tools

Re: a.index(float('nan')) fails

 
 
Cameron Simpson
Guest
Posts: n/a
 
      10-26-2012
On 25Oct2012 22:04, Terry Reedy <(E-Mail Removed)> wrote:
| Containment of nan in collection is tested by is, not ==.
| >>> nan = float('nan')
| >>> nan2 = float('nan')
| >>> nan2 is nan
| False

This argues otherwise, and for use of math.isnan() instead.

I expect you were making the point that another NaN is distinct, but it
didn't seem clear to me.

Cheers,
--
Cameron Simpson <(E-Mail Removed)>

In article http://www.velocityreviews.com/forums/(E-Mail Removed), (E-Mail Removed) (Mcrider) writes:
>Could one of you physicist-type cyber-riders give a lucid description/
>explanation of what some folks loosely refer to as a 'tank-slapper'?


An undamped oscillation of camber thrust, with positive feedback,
applied to the front contact patch? :^)
- Ed Green, (E-Mail Removed), DoD#0111
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Constant.t fails 240 of 272 tests and recurs.t fails 1 of 25 tests on HPUX using perl 5.8.7 dayo Perl Misc 11 12-16-2005 09:09 PM
slideshow fails, Firefox debugger also fails lkrubner@geocities.com Javascript 2 12-23-2004 06:22 PM
Wireless Zero Configuration Servoce fails to start andrew Wireless Networking 0 07-28-2004 03:08 PM
IAS fails with certs from Stand Alone CA Harrison Midkiff Wireless Networking 2 07-22-2004 09:45 PM
Forms Authentication Fails Between ASP.NET 1.0 and 1.1 Applications (Cookie Decryption Fails) John Saunders ASP .Net 1 11-18-2003 03:25 PM



Advertisments