[Python-checkins] python/dist/src/Objects typeobject.c,2.207,2.208

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Tue, 11 Feb 2003 12:38:32 -0800


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

Modified Files:
	typeobject.c 
Log Message:
Fix from SF #681367: inherit tp_as_buffer.  This only applies to C
types -- Python types already inherited this.



Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.207
retrieving revision 2.208
diff -C2 -d -r2.207 -r2.208
*** typeobject.c	11 Feb 2003 17:12:46 -0000	2.207
--- typeobject.c	11 Feb 2003 20:38:29 -0000	2.208
***************
*** 2916,2919 ****
--- 2916,2921 ----
  		if (type->tp_as_mapping == NULL)
  			type->tp_as_mapping = base->tp_as_mapping;
+ 		if (type->tp_as_buffer == NULL)
+ 			type->tp_as_buffer = base->tp_as_buffer;
  	}