[Python-checkins] CVS: python/dist/src/Objects bufferobject.c,2.13,2.13.8.1

Guido van Rossum gvanrossum@users.sourceforge.net
Mon, 30 Apr 2001 07:11:41 -0700


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

Modified Files:
      Tag: descr-branch
	bufferobject.c 
Log Message:
Line up the comments in the type structure initializer.

Add PyGeneric_GetAttr to tp_getattro.


Index: bufferobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/bufferobject.c,v
retrieving revision 2.13
retrieving revision 2.13.8.1
diff -C2 -r2.13 -r2.13.8.1
*** bufferobject.c	2000/09/01 23:29:27	2.13
--- bufferobject.c	2001/04/30 14:11:39	2.13.8.1
***************
*** 538,557 ****
  	sizeof(PyBufferObject),
  	0,
! 	(destructor)buffer_dealloc, /*tp_dealloc*/
! 	0,		/*tp_print*/
! 	0,		/*tp_getattr*/
! 	0,		/*tp_setattr*/
! 	(cmpfunc)buffer_compare, /*tp_compare*/
! 	(reprfunc)buffer_repr, /*tp_repr*/
! 	0,		/*tp_as_number*/
! 	&buffer_as_sequence,	/*tp_as_sequence*/
! 	0,		/*tp_as_mapping*/
! 	(hashfunc)buffer_hash,	/*tp_hash*/
! 	0,		/*tp_call*/
! 	(reprfunc)buffer_str,		/*tp_str*/
! 	0,		/*tp_getattro*/
! 	0,		/*tp_setattro*/
! 	&buffer_as_buffer,	/*tp_as_buffer*/
! 	Py_TPFLAGS_DEFAULT,	/*tp_flags*/
! 	0,		/*tp_doc*/
  };
--- 538,557 ----
  	sizeof(PyBufferObject),
  	0,
! 	(destructor)buffer_dealloc, 		/* tp_dealloc */
! 	0,					/* tp_print */
! 	0,					/* tp_getattr */
! 	0,					/* tp_setattr */
! 	(cmpfunc)buffer_compare,		/* tp_compare */
! 	(reprfunc)buffer_repr,			/* tp_repr */
! 	0,					/* tp_as_number */
! 	&buffer_as_sequence,			/* tp_as_sequence */
! 	0,					/* tp_as_mapping */
! 	(hashfunc)buffer_hash,			/* tp_hash */
! 	0,					/* tp_call */
! 	(reprfunc)buffer_str,			/* tp_str */
! 	PyGeneric_GetAttr,			/* tp_getattro */
! 	0,					/* tp_setattro */
! 	&buffer_as_buffer,			/* tp_as_buffer */
! 	Py_TPFLAGS_DEFAULT,			/* tp_flags */
! 	0,					/* tp_doc */
  };