diff Python/bltinmodule.c @ 45832:5c0b5cabeec9 legacy-trunk

Finish backporting new buffer API to Python 2.6. Left to do: memoryview object and structmodule. But, these need to be finished in Python 3.0 first. No objects support the new buffer API in Python 2.6 as of yet, and except for the memoryview object, I don't think they will.
author Travis E. Oliphant <oliphant@enthought.com>
date Tue, 18 Mar 2008 04:44:57 +0000
parents 18fed14b06b6
children ee0dfccf8cee
line wrap: on
line diff
--- a/Python/bltinmodule.c	Tue Mar 18 04:42:22 2008 +0000
+++ b/Python/bltinmodule.c	Tue Mar 18 04:44:57 2008 +0000
@@ -2474,6 +2474,7 @@
 	SETBUILTIN("True",		Py_True);
 	SETBUILTIN("basestring",	&PyBaseString_Type);
 	SETBUILTIN("bool",		&PyBool_Type);
+	/*	SETBUILTIN("memoryview",        &PyMemoryView_Type); */
 	SETBUILTIN("bytes",		&PyString_Type);
 	SETBUILTIN("buffer",		&PyBuffer_Type);
 	SETBUILTIN("classmethod",	&PyClassMethod_Type);