[prev in list] [next in list] [prev in thread] [next in thread]
List: pypy-svn
Subject: [pypy-commit] pypy default: fix translation
From: alex_gaynor <noreply () buildbot ! pypy ! org>
Date: 2011-11-30 4:28:12
Message-ID: 20111130042812.A89DA8208A () wyvern ! cs ! uni-duesseldorf ! de
[Download RAW message or body]
Author: Alex Gaynor <alex.gaynor@gmail.com>
Branch:
Changeset: r50004:9eec6149907c
Date: 2011-11-29 23:27 -0500
http://bitbucket.org/pypy/pypy/changeset/9eec6149907c/
Log: fix translation
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
@@ -131,7 +131,7 @@
def binop(func):
- func._annspecialcase_ = "specialize:call_location"
+ specialize.argtype(1, 2)(func)
@functools.wraps(func)
def impl(self, v1, v2):
return self.adapt_val(func(self,
@@ -141,6 +141,7 @@
return impl
def raw_binop(func):
+ specialize.argtype(1, 2)(func)
# Returns the result unwrapped.
@functools.wraps(func)
def impl(self, v1, v2):
@@ -151,6 +152,7 @@
return impl
def unaryop(func):
+ specialize.argtype(1)(func)
@functools.wraps(func)
def impl(self, v):
return self.adapt_val(func(self, self.for_computation(self.unbox(v))))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic