summaryrefslogtreecommitdiff
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-06-08 17:00:45 +0000
committerBrett Cannon <bcannon@gmail.com>2006-06-08 17:00:45 +0000
commitde3b0522160df86b45075708cd42a0e7d62a9b71 (patch)
treed7060f822e992ef943d421deb0b52cb5b8b85df0 /Modules/arraymodule.c
parent6ee7d01c059f799c0f52ffe94811507bccc688a2 (diff)
downloadcpython-git-de3b0522160df86b45075708cd42a0e7d62a9b71.tar.gz
Buffer objects would return the read or write buffer for a wrapped object when
the char buffer was requested. Now it actually returns the char buffer if available or raises a TypeError if it isn't (as is raised for the other buffer types if they are not present but requested). Not a backport candidate since it does change semantics of the buffer object (although it could be argued this is enough of a bug to bother backporting).
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index af1276949c..eb6ceefc7a 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -1787,6 +1787,7 @@ static PyBufferProcs array_as_buffer = {
(readbufferproc)array_buffer_getreadbuf,
(writebufferproc)array_buffer_getwritebuf,
(segcountproc)array_buffer_getsegcount,
+ NULL,
};
static PyObject *