
That isn't a good objection for this specific patch -- it's pure Python, and picks apart bits using the struct module. IIRC, it wasn't correctly written for most 64-bit boxes, but that looked like a shallow flaw (I think it assumed that a struct "l" format code, in native mode, always yields a 32-bit thingie).
I was just wondering, now that C99 supports part of IEEE754, should we really get into the job of implementing our own mechanism? As an example, the attached patch exports part of the C99 interface to Python. If we agree that this is something interesting to have in Python, I'll be willing to prepare a patch including support for this interface and hacking some bits to introduce a better IEEE754 support (e.g. checking nan comparisons, etc). -- Gustavo Niemeyer http://niemeyer.net