summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-10 04:17:48 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-10 04:17:48 (GMT)
commit63c46b25d047cd1b1ac725a2b7a284fd235e56c3 (patch)
treeab1f2a7bc3ede5cd64e480c49d03fcf0c361248e /Tools
parent8b4c7ed6eb075e6ebb479e64ee77820607d6d3b7 (diff)
downloadcpython-63c46b25d047cd1b1ac725a2b7a284fd235e56c3.zip
cpython-63c46b25d047cd1b1ac725a2b7a284fd235e56c3.tar.gz
cpython-63c46b25d047cd1b1ac725a2b7a284fd235e56c3.tar.bz2
teach unparse about matrix multiplication
Diffstat (limited to 'Tools')
-rw-r--r--Tools/parser/unparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/parser/unparse.py b/Tools/parser/unparse.py
index 837cd81..258c648 100644
--- a/Tools/parser/unparse.py
+++ b/Tools/parser/unparse.py
@@ -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):