[pypy-commit] pypy numpy-generic-item: Implement tobytes as an alias of tostring
yuyichao
noreply at buildbot.pypy.org
Tue Oct 21 23:10:52 CEST 2014
Author: Yichao Yu <yyc1992 at gmail.com>
Branch: numpy-generic-item
Changeset: r74052:ee8c0dc0c288
Date: 2014-09-23 09:07 -0400
http://bitbucket.org/pypy/pypy/changeset/ee8c0dc0c288/
Log: Implement tobytes as an alias of tostring
diff --git a/pypy/module/micronumpy/boxes.py b/pypy/module/micronumpy/boxes.py
--- a/pypy/module/micronumpy/boxes.py
+++ b/pypy/module/micronumpy/boxes.py
@@ -654,6 +654,7 @@
copy = interp2app(W_GenericBox.descr_copy),
byteswap = interp2app(W_GenericBox.descr_byteswap),
tostring = interp2app(W_GenericBox.descr_tostring),
+ tobytes = interp2app(W_GenericBox.descr_tostring),
reshape = interp2app(W_GenericBox.descr_reshape),
dtype = GetSetProperty(W_GenericBox.descr_get_dtype),
diff --git a/pypy/module/micronumpy/ndarray.py b/pypy/module/micronumpy/ndarray.py
--- a/pypy/module/micronumpy/ndarray.py
+++ b/pypy/module/micronumpy/ndarray.py
@@ -1407,6 +1407,7 @@
fill = interp2app(W_NDimArray.descr_fill),
tostring = interp2app(W_NDimArray.descr_tostring),
+ tobytes = interp2app(W_NDimArray.descr_tostring),
mean = interp2app(W_NDimArray.descr_mean),
sum = interp2app(W_NDimArray.descr_sum),
More information about the pypy-commit
mailing list