Author: mattip <[email protected]>
Branch: missing-ndarray-attributes
Changeset: r59932:99c58c500571
Date: 2013-01-10 22:20 +0200
http://bitbucket.org/pypy/pypy/changeset/99c58c500571/
Log: translation fixes
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
@@ -368,8 +368,8 @@
def str_format(self, box):
return str(self.for_computation(self.unbox(box)))
- @staticmethod
- def for_computation(v):
+ #@staticmethod #v can be all kinds of int
+ def for_computation(self, v):
return widen(v)
def default_fromstring(self, space):
@@ -634,8 +634,8 @@
return float2string(self.for_computation(self.unbox(box)), "g",
rfloat.DTSF_STR_PRECISION)
- @staticmethod
- def for_computation(v):
+ #@staticmethod #v can be a longfloat
+ def for_computation(self, v):
return float(v)
def default_fromstring(self, space):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit