Author: Vincent Legoll <[email protected]>
Branch: fix-1674
Changeset: r81471:439ca3544c0c
Date: 2015-12-19 13:21 +0100
http://bitbucket.org/pypy/pypy/changeset/439ca3544c0c/

Log:    Enhance comment about mask indexing

diff --git a/pypy/module/micronumpy/loop.py b/pypy/module/micronumpy/loop.py
--- a/pypy/module/micronumpy/loop.py
+++ b/pypy/module/micronumpy/loop.py
@@ -684,7 +684,8 @@
     arr_iter, arr_state = arr.create_iter()
     arr_dtype = arr.get_dtype()
     index_dtype = index.get_dtype()
-    # support the deprecated form where arr([True]) will return arr[0, ...]
+    # support the deprecated form where
+    # arr[[True, False, True, ...]] will return arr[0, 2, ...]
     # by iterating over res_iter, not index_iter
     while not res_iter.done(res_state):
         getitem_filter_driver.jit_merge_point(shapelen=shapelen,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to