[pypy-commit] pypy numpy-singledim: numpy: added comments about simple repr and str implementations

justinpeel noreply at buildbot.pypy.org
Fri Jul 15 21:41:33 CEST 2011


Author: Justin Peel <notmuchtotell at 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)


More information about the pypy-commit mailing list