A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-June/065967.html below:

[Python-Dev] "can't unpack IEEE 754 special value on non-IEEE platform"

[Python-Dev] "can't unpack IEEE 754 special value on non-IEEE platform" [Python-Dev] "can't unpack IEEE 754 special value on non-IEEE platform"Tim Peters tim.peters at gmail.com
Mon Jun 12 22:58:59 CEST 2006
[Fredrik Lundh]
> I just ran the PIL test suite using the current Python trunk, and the
> tests for a user-contributed plugin raised an interesting exception:
>
> ValueError: can't unpack IEEE 754 special value on non-IEEE platform
>
> fixing this is easy, but the error is somewhat confusing: since when is
> a modern Intel CPU not an IEEE platform?

Which OS and compiler were in use?  A possible cause is that the
platform didn't supply #defines for SIZEOF_DOUBLE and/or SIZEOF_FLOAT
when Python was compiled.  This was, e.g., true on Windows before rev
46065.

On an Intel box, you should see this:

>>> float.__getformat__('double')
'IEEE, little-endian'

If you get 'unknown' instead, see above.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4