From: Neil Schemenauer Date: Thu, 4 Jan 2001 01:36:25 +0000 (+0000) Subject: Sequence repeat works now for in-place multiply with an integer type X-Git-Tag: v2.1a1~429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=623116a8701ead53a7ba09d329761f4242fd3eb5;p=python Sequence repeat works now for in-place multiply with an integer type as the left operand. I don't know if this is a feature or a bug. --- diff --git a/Lib/test/output/test_coercion b/Lib/test/output/test_coercion index 0cb893babd..8c5f6e0dd9 100644 --- a/Lib/test/output/test_coercion +++ b/Lib/test/output/test_coercion @@ -52,7 +52,7 @@ test_coercion 2 - [1] ... exceptions.TypeError 2 -= [1] ... exceptions.TypeError 2 * [1] = [1, 1] -2 *= [1] ... exceptions.TypeError +2 *= [1] => [1, 1] 2 / [1] ... exceptions.TypeError 2 /= [1] ... exceptions.TypeError 2 ** [1] ... exceptions.TypeError @@ -64,7 +64,7 @@ test_coercion 2 - (2,) ... exceptions.TypeError 2 -= (2,) ... exceptions.TypeError 2 * (2,) = (2, 2) -2 *= (2,) ... exceptions.TypeError +2 *= (2,) => (2, 2) 2 / (2,) ... exceptions.TypeError 2 /= (2,) ... exceptions.TypeError 2 ** (2,) ... exceptions.TypeError @@ -268,7 +268,7 @@ test_coercion 2 - [1] ... exceptions.TypeError 2 -= [1] ... exceptions.TypeError 2 * [1] = [1, 1] -2 *= [1] ... exceptions.TypeError +2 *= [1] => [1, 1] 2 / [1] ... exceptions.TypeError 2 /= [1] ... exceptions.TypeError 2 ** [1] ... exceptions.TypeError @@ -280,7 +280,7 @@ test_coercion 2 - (2,) ... exceptions.TypeError 2 -= (2,) ... exceptions.TypeError 2 * (2,) = (2, 2) -2 *= (2,) ... exceptions.TypeError +2 *= (2,) => (2, 2) 2 / (2,) ... exceptions.TypeError 2 /= (2,) ... exceptions.TypeError 2 ** (2,) ... exceptions.TypeError