[Python-checkins] r73116 - in python/branches/py3k: Include/modsupport.h Misc/NEWS

amaury.forgeotdarc python-checkins at python.org
Mon Jun 1 23:16:17 CEST 2009


Author: amaury.forgeotdarc
Date: Mon Jun  1 23:16:17 2009
New Revision: 73116

Log:
#5735: Modules compiled with incompatible settings (--with-pydebug when python is not)
should generate a link-time error.

I won't backport to 3.0, because it breaks binary compatibility


Modified:
   python/branches/py3k/Include/modsupport.h
   python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Include/modsupport.h
==============================================================================
--- python/branches/py3k/Include/modsupport.h	(original)
+++ python/branches/py3k/Include/modsupport.h	Mon Jun  1 23:16:17 2009
@@ -92,10 +92,10 @@
 */
 
 #ifdef Py_TRACE_REFS
- /* When we are tracing reference counts, rename PyModule_New2 so
+ /* When we are tracing reference counts, rename PyModule_Create2 so
     modules compiled with incompatible settings will generate a
     link-time error. */
- #define PyModule_New2 PyModule_Create2TraceRefs
+ #define PyModule_Create2 PyModule_Create2TraceRefs
 #endif
 
 PyAPI_FUNC(PyObject *) PyModule_Create2(struct PyModuleDef*,

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Mon Jun  1 23:16:17 2009
@@ -28,6 +28,13 @@
 
 - Issue #6158: Package Sine-1000Hz-300ms.aif in MSI file.
 
+C-API
+-----
+
+- Issue #5735: Python compiled with --with-pydebug should throw an
+  ImportError when trying to import modules compiled without
+  --with-pydebug, and vice-versa.
+
 
 What's New in Python 3.1 release candidate 1?
 =============================================


More information about the Python-checkins mailing list