mirror of https://github.com/python/cpython
Match new sequence behavior. User defined types now behave better as and
with sequences.
This commit is contained in:
parent
36e142e1e6
commit
3ea60c2a7a
|
@ -520,7 +520,7 @@ test_coercion
|
||||||
[1] - <MethodNumber 1> ... exceptions.TypeError
|
[1] - <MethodNumber 1> ... exceptions.TypeError
|
||||||
[1] -= <MethodNumber 1> ... exceptions.TypeError
|
[1] -= <MethodNumber 1> ... exceptions.TypeError
|
||||||
[1] * <MethodNumber 1> = [1]
|
[1] * <MethodNumber 1> = [1]
|
||||||
[1] *= <MethodNumber 1> ... exceptions.TypeError
|
[1] *= <MethodNumber 1> => [1]
|
||||||
[1] / <MethodNumber 1> ... exceptions.TypeError
|
[1] / <MethodNumber 1> ... exceptions.TypeError
|
||||||
[1] /= <MethodNumber 1> ... exceptions.TypeError
|
[1] /= <MethodNumber 1> ... exceptions.TypeError
|
||||||
[1] ** <MethodNumber 1> ... exceptions.TypeError
|
[1] ** <MethodNumber 1> ... exceptions.TypeError
|
||||||
|
@ -532,7 +532,7 @@ test_coercion
|
||||||
[1] - <CoerceNumber 2> ... exceptions.TypeError
|
[1] - <CoerceNumber 2> ... exceptions.TypeError
|
||||||
[1] -= <CoerceNumber 2> ... exceptions.TypeError
|
[1] -= <CoerceNumber 2> ... exceptions.TypeError
|
||||||
[1] * <CoerceNumber 2> = [1, 1]
|
[1] * <CoerceNumber 2> = [1, 1]
|
||||||
[1] *= <CoerceNumber 2> ... exceptions.TypeError
|
[1] *= <CoerceNumber 2> => [1, 1]
|
||||||
[1] / <CoerceNumber 2> ... exceptions.TypeError
|
[1] / <CoerceNumber 2> ... exceptions.TypeError
|
||||||
[1] /= <CoerceNumber 2> ... exceptions.TypeError
|
[1] /= <CoerceNumber 2> ... exceptions.TypeError
|
||||||
[1] ** <CoerceNumber 2> ... exceptions.TypeError
|
[1] ** <CoerceNumber 2> ... exceptions.TypeError
|
||||||
|
|
Loading…
Reference in New Issue