PEP 657: Fix alignment typo (#3605)
This commit is contained in:
parent
c576162334
commit
d294d5ef19
|
@ -105,7 +105,7 @@ This problem presents itself in the following situations.
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
File "test.py", line 1, in <module>
|
File "test.py", line 1, in <module>
|
||||||
x = (a + b) @ (c + d)
|
x = (a + b) @ (c + d)
|
||||||
ValueError: operands could not be broadcast together with shapes (1,2) (2,3)
|
ValueError: operands could not be broadcast together with shapes (1,2) (2,3)
|
||||||
|
|
||||||
There is no clear indication as to which operation failed, was it the addition
|
There is no clear indication as to which operation failed, was it the addition
|
||||||
on the left, the right or the matrix multiplication in the middle? With this
|
on the left, the right or the matrix multiplication in the middle? With this
|
||||||
|
@ -115,7 +115,7 @@ This problem presents itself in the following situations.
|
||||||
File "test.py", line 1, in <module>
|
File "test.py", line 1, in <module>
|
||||||
x = (a + b) @ (c + d)
|
x = (a + b) @ (c + d)
|
||||||
~~^~~
|
~~^~~
|
||||||
ValueError: operands could not be broadcast together with shapes (1,2) (2,3)
|
ValueError: operands could not be broadcast together with shapes (1,2) (2,3)
|
||||||
|
|
||||||
Giving a much clearer and easier to debug error message.
|
Giving a much clearer and easier to debug error message.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue