[pypy-commit] pypy numpy-record-dtypes: slightly more rpython friendly way of failing

fijal noreply at buildbot.pypy.org
Tue Feb 7 11:49:01 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-record-dtypes
Changeset: r52161:15d89f64aa44
Date: 2012-02-07 12:48 +0200
http://bitbucket.org/pypy/pypy/changeset/15d89f64aa44/

Log:	slightly more rpython friendly way of failing

diff --git a/pypy/module/micronumpy/interp_dtype.py b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -74,7 +74,7 @@
             except KeyError:
                 pass
         elif space.isinstance_w(w_dtype, space.w_list):
-            xxx
+            raise NotImplementedError
         else:
             for dtype in cache.builtin_dtypes:
                 if w_dtype in dtype.alternate_constructors:


More information about the pypy-commit mailing list