[pypy-commit] pypy int_w-refactor: fix numpypy for the new int_w behavior
antocuni
noreply at buildbot.pypy.org
Wed Feb 26 16:23:54 CET 2014
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: int_w-refactor
Changeset: r69465:0cb2938c3b1b
Date: 2014-02-26 16:22 +0100
http://bitbucket.org/pypy/pypy/changeset/0cb2938c3b1b/
Log: fix numpypy for the new int_w behavior
diff --git a/pypy/module/micronumpy/compile.py b/pypy/module/micronumpy/compile.py
--- a/pypy/module/micronumpy/compile.py
+++ b/pypy/module/micronumpy/compile.py
@@ -156,8 +156,7 @@
assert isinstance(w_obj, FloatObject)
return w_obj.floatval
- def int_w(self, w_obj):
- XXX # fix this
+ def int_w(self, w_obj, allow_conversion=True):
if isinstance(w_obj, IntObject):
return w_obj.intval
elif isinstance(w_obj, FloatObject):
diff --git a/pypy/module/micronumpy/interp_boxes.py b/pypy/module/micronumpy/interp_boxes.py
--- a/pypy/module/micronumpy/interp_boxes.py
+++ b/pypy/module/micronumpy/interp_boxes.py
@@ -365,8 +365,7 @@
pass
class W_IntegerBox(W_NumberBox):
- def int_w(self, space):
- XXX # fix this
+ def _int_w(self, space):
return space.int_w(self.descr_int(space))
class W_SignedIntegerBox(W_IntegerBox):
More information about the pypy-commit
mailing list