Closed guyer closed 7 months ago
I'm not pythonic enough to understand what this syntax change means. It looks like you're changing the code from taking the second element of the array, to I have no idea what the [...]
-th element means.
I'm not pythonic enough to understand what this syntax change means. It looks like you're changing the code from taking the second element of the array, to I have no idea what the
[...]
-th element means.
The test is asking for the represenation of the lazy evaluation of the second element in the array. Under Python 2.7, it returned Variable(value=array([1, 2, 3, 4]))[index]
. (After this fix) under Python 3, it returns Variable(value=array([1, 2, 3, 4]))[1]
. # doctest: +ELLIPSIS
enables me to write a test that accepts either output.
The fact that humans won't know what that means is OK; this test is under _testBinOp()
because it's not intended as documentation.
I'm not pythonic enough to understand what this syntax change means. It looks like you're changing the code from taking the second element of the array, to I have no idea what the
[...]
-th element means.The test is asking for the represenation of the lazy evaluation of the second element in the array. Under Python 2.7, it returned
Variable(value=array([1, 2, 3, 4]))[index]
. (After this fix) under Python 3, it returnsVariable(value=array([1, 2, 3, 4]))[1]
.# doctest: +ELLIPSIS
enables me to write a test that accepts either output.The fact that humans won't know what that means is OK; this test is under
_testBinOp()
because it's not intended as documentation.
Ah-ha! Cool, thank you.
nix is the devil
nix is the devil
and not spoken of in polite company
Fixes #961 Addresses #1011