[Python-checkins] python/dist/src/Modules arraymodule.c,2.71,2.72

loewis@sourceforge.net loewis@sourceforge.net
Thu, 02 May 2002 13:34:16 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv23722

Modified Files:
	arraymodule.c 
Log Message:
Indicate delayed initialization of slots. Suggested by tim.one.


Index: arraymodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/arraymodule.c,v
retrieving revision 2.71
retrieving revision 2.72
diff -C2 -d -r2.71 -r2.72
*** arraymodule.c	2 May 2002 20:09:59 -0000	2.71
--- arraymodule.c	2 May 2002 20:34:12 -0000	2.72
***************
*** 14,17 ****
--- 14,19 ----
  #endif /* !STDC_HEADERS */
  
+ #define DELAYED(X)	0
+ 
  struct arrayobject; /* Forward */
  
***************
*** 1698,1702 ****
  	0,					/* tp_call */
  	0,					/* tp_str */
! 	0,					/* tp_getattro */
  	0,					/* tp_setattro */
  	&array_as_buffer,			/* tp_as_buffer*/
--- 1700,1704 ----
  	0,					/* tp_call */
  	0,					/* tp_str */
! 	DELAYED(PyObject_GenericGetAttr),	/* tp_getattro */
  	0,					/* tp_setattro */
  	&array_as_buffer,			/* tp_as_buffer*/
***************
*** 1718,1724 ****
  	0,					/* tp_dictoffset */
  	0,					/* tp_init */
! 	0,					/* tp_alloc */
  	array_new,				/* tp_new */
! 	0,					/* tp_free */
  };
  
--- 1720,1726 ----
  	0,					/* tp_dictoffset */
  	0,					/* tp_init */
! 	DELAYED(PyType_GenericAlloc),		/* tp_alloc */
  	array_new,				/* tp_new */
! 	DELAYED(PyObject_Del),			/* tp_free */
  };