This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Rhamphoryncus, christian.heimes, gvanrossum, tim.peters
Date 2007-12-18.21:12:22
SpamBayes Score 0.012519089
Marked as misclassified No
Message-id <476837B5.5040103@cheimes.de>
In-reply-to <1198007313.65.0.550878967559.issue1635@psf.upfronthosting.co.za>
Content
Guido van Rossum wrote:
> (1) You shouldn't have to add pystrcmp.c to the VC project files since
> on Windows it isn't used, right?

It was the easiest way to test the functions in pystrcmp. Linux doesn't
have stricmp but it also doesn't require the additional code to mangle
1.#INF into inf.

> (2) Will the Windows input routine still accept the *old*
> representations for INF and NAN?  IMO that's important (a) so as to be
> able to read old pickles or marshalled data, (b) so as to be able to
> read data files written by C programs.

See Tim's answer.
Pickles and other C programs aren't an issue. Internally NaNs and INFs
are represented with a special bit pattern (all bits of the exponent are
set). As long as users don't use str() or repr() on floats it still
works. The pickle module uses struct.

> (3) Shouldn't you be using Py_HUGE_VAL instead of HUGE_VAL in the chunk
> starting at line 187 in floatobject.c?

I missed the spot, thanks.

Christian
History
Date User Action Args
2007-12-18 21:12:23christian.heimessetspambayes_score: 0.0125191 -> 0.012519089
recipients: + christian.heimes, gvanrossum, tim.peters, Rhamphoryncus
2007-12-18 21:12:23christian.heimeslinkissue1635 messages
2007-12-18 21:12:22christian.heimescreate