]> granicus.if.org Git - python/commitdiff
Sequence repeat works now for in-place multiply with an integer type
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Thu, 4 Jan 2001 01:36:25 +0000 (01:36 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Thu, 4 Jan 2001 01:36:25 +0000 (01:36 +0000)
as the left operand.  I don't know if this is a feature or a bug.

Lib/test/output/test_coercion

index 0cb893babdfd3e4180383c3d17d999bef4480d10..8c5f6e0dd962cbfa1e58b4f2654cd9f256d092f9 100644 (file)
@@ -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