]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
teach unparse about matrix multiplication
authorBenjamin Peterson <benjamin@python.org>
Thu, 10 Apr 2014 04:17:48 +0000 (00:17 -0400)
committerBenjamin Peterson <benjamin@python.org>
Thu, 10 Apr 2014 04:17:48 +0000 (00:17 -0400)
Tools/parser/unparse.py

index 837cd81aaf8554c63f03f1fd49ec9f5779069c3b..258c648b6bbc478e23410b8289c36bb9ffcd5aee 100644 (file)
@@ -401,7 +401,7 @@ class Unparser:
         self.dispatch(t.operand)
         self.write(")")
 
-    binop = { "Add":"+", "Sub":"-", "Mult":"*", "Div":"/", "Mod":"%",
+    binop = { "Add":"+", "Sub":"-", "Mult":"*", "MatMult":"@", "Div":"/", "Mod":"%",
                     "LShift":"<<", "RShift":">>", "BitOr":"|", "BitXor":"^", "BitAnd":"&",
                     "FloorDiv":"//", "Pow": "**"}
     def _BinOp(self, t):