[pypy-commit] pypy numpy-back-to-applevel: proper error

fijal noreply at buildbot.pypy.org
Thu Jan 26 15:15:38 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-back-to-applevel
Changeset: r51794:3c1c293c3fa4
Date: 2012-01-26 14:56 +0200
http://bitbucket.org/pypy/pypy/changeset/3c1c293c3fa4/

Log:	proper error

diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -619,7 +619,8 @@
         if space.is_w(w_axis, space.w_None):
             concr = concr.descr_ravel(space)
         else:
-            xxx
+            raise OperationError(space.w_NotImplementedError,
+                                 space.wrap("axis unsupported for take"))
         index_i = index.create_iter()
         res_shape = index.shape
         size = 1


More information about the pypy-commit mailing list