[pypy-commit] pypy numpypy-complex2: fix translation

mattip noreply at buildbot.pypy.org
Thu Sep 13 00:55:17 CEST 2012


Author: mattip <matti.picus at gmail.com>
Branch: numpypy-complex2
Changeset: r57310:6ee61649e84f
Date: 2012-09-13 01:54 +0300
http://bitbucket.org/pypy/pypy/changeset/6ee61649e84f/

Log:	fix translation

diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -53,6 +53,7 @@
     specialize.argtype(1)(func)
     @functools.wraps(func)
     def dispatcher(self, v):
+        assert isinstance(v, Primitive)
         return self.RealBoxType(
             func(
                 self,


More information about the pypy-commit mailing list