Author: Philip Jenvey <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit