[pypy-commit] pypy buffer-interface: add missing method override

mattip pypy.commits at gmail.com
Wed Aug 31 14:21:42 EDT 2016


Author: Matti Picus <matti.picus at gmail.com>
Branch: buffer-interface
Changeset: r86789:2606925a333b
Date: 2016-08-31 21:18 +0300
http://bitbucket.org/pypy/pypy/changeset/2606925a333b/

Log:	add missing method override

diff --git a/pypy/module/cpyext/slotdefs.py b/pypy/module/cpyext/slotdefs.py
--- a/pypy/module/cpyext/slotdefs.py
+++ b/pypy/module/cpyext/slotdefs.py
@@ -341,6 +341,9 @@
     def getitemsize(self):
         return self.itemsize
 
+    def getndim(self):
+        return self.ndim
+
 def wrap_getreadbuffer(space, w_self, w_args, func):
     func_target = rffi.cast(readbufferproc, func)
     with lltype.scoped_alloc(rffi.VOIDPP.TO, 1) as ptr:


More information about the pypy-commit mailing list