[Python-Dev] Re: marshal / unmarshal

LD "Gus" Landis ldlandis at gmail.com
Thu Apr 14 15:23:57 CEST 2005


Hi,

  For AIX:

Python 2.2 (#1, Feb 17 2003, 21:43:03) [C] on aix4
Type "help", "copyright", "credits" or "license" for more information.
>>> import marshal
>>> marshal.dumps(1e10000)
'f\x03INF'
>>> marshal.loads(marshal.dumps(1e10000))
INF
>>> float("INF")
INF
>>> float("NaN")
NaNQ
>>>


On 4/9/05, Skip Montanaro <skip at pobox.com> wrote:
> 
>     Martin> Yet, this *still* is a platform dependence. Python makes no
>     Martin> guarantee that 1e1000 is a supported float literal on any
>     Martin> platform, and indeed, on your platform, 1e1000 is not supported
>     Martin> on your platform.
> 
> Are float("inf") and float("nan") supported everywhere?
>

-- 
LD Landis - N0YRQ - from the St Paul side of Minneapolis


More information about the Python-Dev mailing list