curious problem with large numbers

Laszlo Zsolt Nagy gandalf at geochemsource.com
Thu Apr 7 17:05:36 EDT 2005


I thought it will be the same for FreeBSD, but here are the results:

FreeBSD 4.8 with Python 2.3.4

Python 2.3.4 (#2, Nov 10 2004, 05:08:39)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
 >>> inf = 1e308*2
 >>> inf
Inf
 >>> float('Inf')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: invalid literal for float(): Inf
 >>>



FreeBSD 4.8 with Python 2.4

Python 2.4 (#2, Jan 27 2005, 17:11:08)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
 >>> inf = 1e308*2
 >>> inf
Inf
 >>> float('Inf')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: invalid literal for float(): Inf
 >>>



-- 
_________________________________________________________________
  Laszlo Nagy		      web: http://designasign.biz
  IT Consultant		      mail: gandalf at geochemsource.com

     		Python forever!





More information about the Python-list mailing list