diff --git a/peps/pep-0657.rst b/peps/pep-0657.rst index 255911e3a..94ce30dba 100644 --- a/peps/pep-0657.rst +++ b/peps/pep-0657.rst @@ -105,7 +105,7 @@ This problem presents itself in the following situations. Traceback (most recent call last): File "test.py", line 1, in 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 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 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.