Author: Justin Peel <notmuchtot...@gmail.com> Branch: numpy-singledim Changeset: r45646:bf62aedfaa55 Date: 2011-07-14 23:16 -0600 http://bitbucket.org/pypy/pypy/changeset/bf62aedfaa55/
Log: numpy: added comments about simple repr and str implementations diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py --- a/pypy/module/micronumpy/interp_numarray.py +++ b/pypy/module/micronumpy/interp_numarray.py @@ -537,9 +537,11 @@ return nums def descr_repr(self, space): + # Simple implementation so that we can see the array. Needs work. return space.wrap("array([" + ", ".join(self._getnums(False)) + "])") def descr_str(self,space): + # Simple implementation so that we can see the array. Needs work. return space.wrap("[" + " ".join(self._getnums(True)) + "]") @unwrap_spec(item=int, value=float) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit