Author: Ronan Lamy <ronan.l...@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
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to