[pypy-commit] pypy numpy-back-to-applevel: make the unsupported case applevel

fijal noreply at buildbot.pypy.org
Thu Jan 26 21:02:05 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-back-to-applevel
Changeset: r51811:ddf5b962aa39
Date: 2012-01-26 22:01 +0200
http://bitbucket.org/pypy/pypy/changeset/ddf5b962aa39/

Log:	make the unsupported case applevel

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
@@ -655,7 +655,8 @@
             # XXX a bit around
             return self.descr_getitem(space.newtuple([space.wrap(x)
                                                       for x in i]))
-        xxx
+        raise OperationError(space.w_NotImplementedError, space.wrap(
+            "non-int arg not supported"))
 
 def convert_to_array(space, w_obj):
     if isinstance(w_obj, BaseArray):


More information about the pypy-commit mailing list