[Python-checkins] r51985 - peps/trunk/pep-0353.txt

martin.v.loewis python-checkins at python.org
Fri Sep 22 22:10:38 CEST 2006


Author: martin.v.loewis
Date: Fri Sep 22 22:10:37 2006
New Revision: 51985

Modified:
   peps/trunk/pep-0353.txt
Log:
Guard definitions against redefinition.
Proposed by David Abrahams.


Modified: peps/trunk/pep-0353.txt
==============================================================================
--- peps/trunk/pep-0353.txt	(original)
+++ peps/trunk/pep-0353.txt	Fri Sep 22 22:10:37 2006
@@ -133,7 +133,7 @@
 to ssizeargfunc). Compatibility with previous Python
 versions can be achieved with the test::
 
- #if PY_VERSION_HEX < 0x02050000
+ #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
  typedef int Py_ssize_t;
  #define PY_SSIZE_T_MAX INT_MAX
  #define PY_SSIZE_T_MIN INT_MIN


More information about the Python-checkins mailing list