[pypy-commit] pypy py3k: workaround lack of space.hex/oct in py3k
pjenvey
noreply at buildbot.pypy.org
Thu Dec 19 04:31:26 CET 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r68483:31ac6a26b147
Date: 2013-12-18 19:30 -0800
http://bitbucket.org/pypy/pypy/changeset/31ac6a26b147/
Log: workaround lack of space.hex/oct in py3k
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
@@ -159,10 +159,10 @@
return space.wrap(box.value)
def descr_oct(self, space):
- return space.oct(self.descr_int(space))
+ return space.call_method(space.builtin, 'oct', self.descr_int(space))
def descr_hex(self, space):
- return space.hex(self.descr_int(space))
+ return space.call_method(space.builtin, 'hex', self.descr_int(space))
def descr_nonzero(self, space):
dtype = self.get_dtype(space)
More information about the pypy-commit
mailing list