[Python-checkins] r61933 - python/branches/trunk-bytearray/Objects/typeobject.c

christian.heimes python-checkins at python.org
Wed Mar 26 13:20:49 CET 2008


Author: christian.heimes
Date: Wed Mar 26 13:20:46 2008
New Revision: 61933

Modified:
   python/branches/trunk-bytearray/Objects/typeobject.c
Log:
Fixed a bug in the new buffer protocol. The buffer slots weren't copied into a subclass.

Modified: python/branches/trunk-bytearray/Objects/typeobject.c
==============================================================================
--- python/branches/trunk-bytearray/Objects/typeobject.c	(original)
+++ python/branches/trunk-bytearray/Objects/typeobject.c	Wed Mar 26 13:20:46 2008
@@ -3762,6 +3762,8 @@
 		COPYBUF(bf_getwritebuffer);
 		COPYBUF(bf_getsegcount);
 		COPYBUF(bf_getcharbuffer);
+		COPYBUF(bf_getbuffer);
+		COPYBUF(bf_releasebuffer);
 	}
 
 	basebase = base->tp_base;


More information about the Python-checkins mailing list