diff options
| author | Brett Cannon <brett@python.org> | 2014-05-09 11:56:07 -0400 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2014-05-09 11:56:07 -0400 |
| commit | 135281656d1569128926cd460cbdf017bb48ef74 (patch) | |
| tree | 2f7f4c05b4e8e15b74922e9c57177461fe086824 /Python/compile.c | |
| parent | 328b2c3d974b2f98655105da3f90102f18a62fdc (diff) | |
| parent | 711571d0ee1a7d54a61a85f236788b3a6fded432 (diff) | |
| download | cpython-135281656d1569128926cd460cbdf017bb48ef74.tar.gz | |
Merge for issue #21438
Diffstat (limited to 'Python/compile.c')
| -rw-r--r-- | Python/compile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 9978eb3a1d..9d3646eb91 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -881,6 +881,7 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg) case BINARY_POWER: case BINARY_MULTIPLY: + case BINARY_MATRIX_MULTIPLY: case BINARY_MODULO: case BINARY_ADD: case BINARY_SUBTRACT: @@ -895,6 +896,7 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg) case INPLACE_ADD: case INPLACE_SUBTRACT: case INPLACE_MULTIPLY: + case INPLACE_MATRIX_MULTIPLY: case INPLACE_MODULO: return -1; case STORE_SUBSCR: @@ -2625,6 +2627,8 @@ binop(struct compiler *c, operator_ty op) return BINARY_SUBTRACT; case Mult: return BINARY_MULTIPLY; + case MatMult: + return BINARY_MATRIX_MULTIPLY; case Div: return BINARY_TRUE_DIVIDE; case Mod: @@ -2689,6 +2693,8 @@ inplace_binop(struct compiler *c, operator_ty op) return INPLACE_SUBTRACT; case Mult: return INPLACE_MULTIPLY; + case MatMult: + return INPLACE_MATRIX_MULTIPLY; case Div: return INPLACE_TRUE_DIVIDE; case Mod: |
