Issue #2396: backport the memoryview object.

This commit is contained in:
Antoine Pitrou 2009-04-02 21:18:34 +00:00
parent 48e3fd240f
commit 789be0c0a0
15 changed files with 1672 additions and 26 deletions

View file

@ -2573,7 +2573,7 @@ _PyBuiltin_Init(void)
SETBUILTIN("True", Py_True);
SETBUILTIN("basestring", &PyBaseString_Type);
SETBUILTIN("bool", &PyBool_Type);
/* SETBUILTIN("memoryview", &PyMemoryView_Type); */
SETBUILTIN("memoryview", &PyMemoryView_Type);
SETBUILTIN("bytearray", &PyByteArray_Type);
SETBUILTIN("bytes", &PyString_Type);
SETBUILTIN("buffer", &PyBuffer_Type);