[Python-checkins] python/dist/src/Mac/Modules/snd _Sndmodule.c,1.15,1.16
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Thu, 24 Jul 2003 15:25:05 -0700
Update of /cvsroot/python/python/dist/src/Mac/Modules/snd
In directory sc8-pr-cvs1:/tmp/cvs-serv14563
Modified Files:
_Sndmodule.c
Log Message:
Don't export the SPB type as "SPB", because it shadows the method SPB,
which is really important. This is a stopgap measure, as only the generated
C code is adapted. Fixes #776533.
Index: _Sndmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/snd/_Sndmodule.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** _Sndmodule.c 23 Dec 2002 23:16:25 -0000 1.15
--- _Sndmodule.c 24 Jul 2003 22:25:03 -0000 1.16
***************
*** 1151,1156 ****
--- 1151,1159 ----
SPB_Type.ob_type = &PyType_Type;
if (PyType_Ready(&SPB_Type) < 0) return;
+ #if 0
+ /* This would shadow the SPB routine, which is bad news (it is important) */
Py_INCREF(&SPB_Type);
PyModule_AddObject(m, "SPB", (PyObject *)&SPB_Type);
+ #endif
/* Backward-compatible name */
Py_INCREF(&SPB_Type);