[Python-checkins] r46223 - python/trunk/Include/pyport.h

kristjan.jonsson python-checkins at python.org
Thu May 25 18:39:28 CEST 2006


Author: kristjan.jonsson
Date: Thu May 25 18:39:27 2006
New Revision: 46223

Modified:
   python/trunk/Include/pyport.h
Log:
Fix incorrect documentation for the Py_IS_FINITE(X) macro.

Modified: python/trunk/Include/pyport.h
==============================================================================
--- python/trunk/Include/pyport.h	(original)
+++ python/trunk/Include/pyport.h	Thu May 25 18:39:27 2006
@@ -295,9 +295,9 @@
 #define Py_IS_INFINITY(X) ((X) && (X)*0.5 == (X))
 #endif
 
-/* Py_IS_INFINITY(X)
- * Return 1 if float or double arg is an infinity, else 0.
- * Some architectures (Windows) have intrinsics for this, so a special
+/* Py_IS_FINITE(X)
+ * Return 1 if float or double arg is neither infinite nor NAN, else 0.
+ * Some compilers (e.g. VisualStudio) have intrisics for this, so a special
  * macro for this particular test is useful
  */
 #ifndef Py_IS_FINITE


More information about the Python-checkins mailing list