Portably generating infinity and NaN

Steve Holden steve at holdenweb.com
Mon Apr 16 02:37:53 CEST 2007

Paul Rubin wrote:
> skip at pobox.com writes:
>> But PEP 754 will only work for architectures supporting IEEE 754.  I realize
>> that's the vast majority of systems, but aren't there still a few Crays and
>> VMS machines out there?  (Do those architectures support NaN and Inf?)
> I wouldn't worry about it.  There are Python subsystems (like threads) that
> don't work on certain OS's, fine, total portability means not being able to
> rely on them, and that's ok.  I doubt any Crays are still running, or at least
> running any numerical code written in Python.  Same for VMS.

Think again.

Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb     http://del.icio.us/steve.holden
Recent Ramblings       http://holdenweb.blogspot.com

More information about the Python-list mailing list