[pypy-commit] pypy numpy-ctypes: fix typo

rlamy noreply at buildbot.pypy.org
Sat Sep 26 00:38:06 CEST 2015


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: numpy-ctypes
Changeset: r79845:6a065e2c6443
Date: 2015-09-25 23:38 +0100
http://bitbucket.org/pypy/pypy/changeset/6a065e2c6443/

Log:	fix typo

diff --git a/pypy/module/micronumpy/ndarray.py b/pypy/module/micronumpy/ndarray.py
--- a/pypy/module/micronumpy/ndarray.py
+++ b/pypy/module/micronumpy/ndarray.py
@@ -747,10 +747,10 @@
         return out
 
     def descr_get_ctypes(self, space):
-        w_result = space.appexec([self], """(w_array):
+        w_result = space.appexec([self], """(arr):
             from numpy.core import _internal
-            p_data = self.__array_interface__['data'][0]
-            return _internal.ctypes(self, p_data)
+            p_data = arr.__array_interface__['data'][0]
+            return _internal.ctypes(arr, p_data)
         """)
         return w_result
 


More information about the pypy-commit mailing list