summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-09-23 19:11:32 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-09-23 19:11:32 (GMT)
commit862f0593d8e8c7cd510b598296c73b25168d0472 (patch)
treeb08e666ab49cab220687ec84959a37301dc076ae /Misc
parent307fa78107c39ffda1eb4ad18201d25650354c4e (diff)
downloadcpython-862f0593d8e8c7cd510b598296c73b25168d0472.zip
cpython-862f0593d8e8c7cd510b598296c73b25168d0472.tar.gz
cpython-862f0593d8e8c7cd510b598296c73b25168d0472.tar.bz2
Introduced a Py_IS_NAN macro, which probably works on the major platforms
today. pyconfig.h can override it if not, and can also override Py_IS_INFINITY now. Py_IS_NAN and Py_IS_INFINITY are overridden now for Microsoft compilers, using efficient MS-specific spellings.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 5 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 89a6c57..d3f4fe4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -74,7 +74,11 @@ Library
Build
-----
-...
+- pyport.h now defines a Py_IS_NAN macro. It works as-is when the
+ platform C computes true for ``x != x`` if and only if X is a NaN.
+ Other platforms can override the default definition with a platform-
+ specific spelling in that platform's pyconfig.h. You can also override
+ pyport.h's default Py_IS_INFINITY definition now.
C API
-----