[pypy-commit] pypy missing-ndarray-attributes: mention why we do that

fijal noreply at buildbot.pypy.org
Sat Oct 27 00:09:31 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: missing-ndarray-attributes
Changeset: r58485:c1bd1b306ef7
Date: 2012-10-27 00:09 +0200
http://bitbucket.org/pypy/pypy/changeset/c1bd1b306ef7/

Log:	mention why we do that

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
@@ -379,6 +379,8 @@
     def descr_argsort(self, space, w_axis=None, w_kind=None, w_order=None):
         # happily ignore the kind
         # create a contiguous copy of the array
+        # we must do that, because we need a working set. otherwise
+        # we would modify the array in-place
         contig = self.descr_copy(space)
         return contig.implementation.argsort(space, w_axis)
 


More information about the pypy-commit mailing list