summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-10 21:47:03 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-10 21:47:03 (GMT)
commit5e19e4441335a70c9087402e9c487b66c9daca94 (patch)
tree9d0dd68e8b105696f64cd56453a1cce957bdb6e3 /Objects/memoryobject.c
parent2409dc79d2df77d75d702ec7feeeacc3c44490d2 (diff)
downloadcpython-5e19e4441335a70c9087402e9c487b66c9daca94.zip
cpython-5e19e4441335a70c9087402e9c487b66c9daca94.tar.gz
cpython-5e19e4441335a70c9087402e9c487b66c9daca94.tar.bz2
kill memoryview.size in favor of len(view)
Reviewer: Antoine Pitrou #3827
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r--Objects/memoryobject.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index fbb1af6..32e5c44 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -370,12 +370,6 @@ memory_suboffsets_get(PyMemoryViewObject *self)
}
static PyObject *
-memory_size_get(PyMemoryViewObject *self)
-{
- return PyLong_FromSsize_t(self->view.len);
-}
-
-static PyObject *
memory_readonly_get(PyMemoryViewObject *self)
{
return PyBool_FromLong(self->view.readonly);
@@ -393,7 +387,6 @@ static PyGetSetDef memory_getsetlist[] ={
{"shape", (getter)memory_shape_get, NULL, NULL},
{"strides", (getter)memory_strides_get, NULL, NULL},
{"suboffsets", (getter)memory_suboffsets_get, NULL, NULL},
- {"size", (getter)memory_size_get, NULL, NULL},
{"readonly", (getter)memory_readonly_get, NULL, NULL},
{"ndim", (getter)memory_ndim_get, NULL, NULL},
{NULL, NULL, NULL, NULL},