diff options
| author | Ned Deily <nad@acm.org> | 2014-09-13 23:40:27 -0700 |
|---|---|---|
| committer | Ned Deily <nad@acm.org> | 2014-09-13 23:40:27 -0700 |
| commit | 4278e8cf357c7418651ca0e23346b2ddec74edce (patch) | |
| tree | a3c23ca1ef525340d98e01bb53fc9e6785ce45ff /Python/compile.c | |
| parent | 0d48f974662035c14912d225b71b6cf93b621bb0 (diff) | |
| parent | 0675102eeb39b5bf471af40e8af6729102fccc6b (diff) | |
| download | cpython-4278e8cf357c7418651ca0e23346b2ddec74edce.tar.gz | |
Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X.
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 69419ecddc..9cc13995ef 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: |
