[Python-checkins] CVS: python/dist/src/Mac/Modules/list _Listmodule.c,1.5,1.5.2.1

Jack Jansen jackjansen@users.sourceforge.net
Thu, 29 Nov 2001 05:22:54 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/list
In directory usw-pr-cvs1:/tmp/cvs-serv23030/Python/Mac/Modules/list

Modified Files:
      Tag: r22b2-branch
	_Listmodule.c 
Log Message:
Use the WeakLink generators where it makes sense. This allows the resulting module to be imported on older versions of MacOS that do not support all routines encasulated in the module. Using a routine thats unavailable results in a RuntimeError, "Routine not available on this platform".

Index: _Listmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/list/_Listmodule.c,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C2 -d -r1.5 -r1.5.2.1
*** _Listmodule.c	2001/11/05 11:12:12	1.5
--- _Listmodule.c	2001/11/29 13:22:52	1.5.2.1
***************
*** 648,652 ****
  
  PyTypeObject List_Type = {
! 	PyObject_HEAD_INIT(&PyType_Type)
  	0, /*ob_size*/
  	"List", /*tp_name*/
--- 648,652 ----
  
  PyTypeObject List_Type = {
! 	PyObject_HEAD_INIT(NULL)
  	0, /*ob_size*/
  	"List", /*tp_name*/