diff Python/marshal.c @ 43423:0476a2cc5658

Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
author Travis E. Oliphant <oliphant@enthought.com>
date Sun, 23 Sep 2007 02:00:13 +0000
parents 5fde5d6964d7
children 3e5edf19d5f0
line wrap: on
line diff
--- a/Python/marshal.c	Fri Sep 21 20:50:26 2007 +0000
+++ b/Python/marshal.c	Sun Sep 23 02:00:13 2007 +0000
@@ -367,7 +367,7 @@
 		/* Write unknown buffer-style objects as a string */
 		char *s;
 		PyBufferProcs *pb = v->ob_type->tp_as_buffer;
-                PyBuffer view;
+                Py_buffer view;
 		if ((*pb->bf_getbuffer)(v, &view, PyBUF_SIMPLE) != 0) {
                         w_byte(TYPE_UNKNOWN, p);
                         p->error = 1;