Author: Yichao Yu <yyc1...@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), _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit