diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-04-10 04:17:48 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-04-10 04:17:48 (GMT) |
commit | 63c46b25d047cd1b1ac725a2b7a284fd235e56c3 (patch) | |
tree | ab1f2a7bc3ede5cd64e480c49d03fcf0c361248e /Tools | |
parent | 8b4c7ed6eb075e6ebb479e64ee77820607d6d3b7 (diff) | |
download | cpython-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.py | 2 |
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): |