summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-04 20:30:33 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-04 20:30:33 (GMT)
commitaeb6ceead796af4746f5b2f816b23654816033b7 (patch)
tree9836b77eb1f4868f39bc499d3c6d8abe3f13bbca /Include
parent8f2e07b7d0510a008bcf63640ebe66d397e0bf52 (diff)
downloadcpython-aeb6ceead796af4746f5b2f816b23654816033b7.zip
cpython-aeb6ceead796af4746f5b2f816b23654816033b7.tar.gz
cpython-aeb6ceead796af4746f5b2f816b23654816033b7.tar.bz2
Issue #10293: Remove obsolete field in the PyMemoryView structure,
unused undocumented value PyBUF_SHADOW, and strangely-looking code in PyMemoryView_GetContiguous.
Diffstat (limited to 'Include')
-rw-r--r--Include/memoryobject.h1
-rw-r--r--Include/object.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/Include/memoryobject.h b/Include/memoryobject.h
index bf0b621..5bbfb05 100644
--- a/Include/memoryobject.h
+++ b/Include/memoryobject.h
@@ -63,7 +63,6 @@ PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info);
and functions instead! */
typedef struct {
PyObject_HEAD
- PyObject *base;
Py_buffer view;
} PyMemoryViewObject;
diff --git a/Include/object.h b/Include/object.h
index f14fd07..bc528fd 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -189,7 +189,6 @@ typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
#define PyBUF_READ 0x100
#define PyBUF_WRITE 0x200
-#define PyBUF_SHADOW 0x400
/* End buffer interface */