mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
teach unparse about matrix multiplication
This commit is contained in:
parent
8b4c7ed6eb
commit
63c46b25d0
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ class Unparser:
|
||||||
self.dispatch(t.operand)
|
self.dispatch(t.operand)
|
||||||
self.write(")")
|
self.write(")")
|
||||||
|
|
||||||
binop = { "Add":"+", "Sub":"-", "Mult":"*", "Div":"/", "Mod":"%",
|
binop = { "Add":"+", "Sub":"-", "Mult":"*", "MatMult":"@", "Div":"/", "Mod":"%",
|
||||||
"LShift":"<<", "RShift":">>", "BitOr":"|", "BitXor":"^", "BitAnd":"&",
|
"LShift":"<<", "RShift":">>", "BitOr":"|", "BitXor":"^", "BitAnd":"&",
|
||||||
"FloorDiv":"//", "Pow": "**"}
|
"FloorDiv":"//", "Pow": "**"}
|
||||||
def _BinOp(self, t):
|
def _BinOp(self, t):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue