mirror of https://github.com/python/cpython
1055 lines
36 KiB
Plaintext
1055 lines
36 KiB
Plaintext
test_coercion
|
|
2 + 2 = 4
|
|
2 += 2 => 4
|
|
2 - 2 = 0
|
|
2 -= 2 => 0
|
|
2 * 2 = 4
|
|
2 *= 2 => 4
|
|
2 / 2 = 1
|
|
2 /= 2 => 1
|
|
2 ** 2 = 4
|
|
2 **= 2 => 4
|
|
2 % 2 = 0
|
|
2 %= 2 => 0
|
|
2 + 4.0 = 6.0
|
|
2 += 4.0 => 6.0
|
|
2 - 4.0 = -2.0
|
|
2 -= 4.0 => -2.0
|
|
2 * 4.0 = 8.0
|
|
2 *= 4.0 => 8.0
|
|
2 / 4.0 = 0.5
|
|
2 /= 4.0 => 0.5
|
|
2 ** 4.0 = 16.0
|
|
2 **= 4.0 => 16.0
|
|
2 % 4.0 = 2.0
|
|
2 %= 4.0 => 2.0
|
|
2 + 2 = 4
|
|
2 += 2 => 4
|
|
2 - 2 = 0
|
|
2 -= 2 => 0
|
|
2 * 2 = 4
|
|
2 *= 2 => 4
|
|
2 / 2 = 1
|
|
2 /= 2 => 1
|
|
2 ** 2 = 4
|
|
2 **= 2 => 4
|
|
2 % 2 = 0
|
|
2 %= 2 => 0
|
|
2 + (2+0j) = (4.0 + 0.0j)
|
|
2 += (2+0j) => (4.0 + 0.0j)
|
|
2 - (2+0j) = (0.0 + 0.0j)
|
|
2 -= (2+0j) => (0.0 + 0.0j)
|
|
2 * (2+0j) = (4.0 + 0.0j)
|
|
2 *= (2+0j) => (4.0 + 0.0j)
|
|
2 / (2+0j) = (1.0 + 0.0j)
|
|
2 /= (2+0j) => (1.0 + 0.0j)
|
|
2 ** (2+0j) = (4.0 + 0.0j)
|
|
2 **= (2+0j) => (4.0 + 0.0j)
|
|
2 % (2+0j) = (0.0 + 0.0j)
|
|
2 %= (2+0j) => (0.0 + 0.0j)
|
|
2 + [1] ... exceptions.TypeError
|
|
2 += [1] ... exceptions.TypeError
|
|
2 - [1] ... exceptions.TypeError
|
|
2 -= [1] ... exceptions.TypeError
|
|
2 * [1] = [1, 1]
|
|
2 *= [1] => [1, 1]
|
|
2 / [1] ... exceptions.TypeError
|
|
2 /= [1] ... exceptions.TypeError
|
|
2 ** [1] ... exceptions.TypeError
|
|
2 **= [1] ... exceptions.TypeError
|
|
2 % [1] ... exceptions.TypeError
|
|
2 %= [1] ... exceptions.TypeError
|
|
2 + (2,) ... exceptions.TypeError
|
|
2 += (2,) ... exceptions.TypeError
|
|
2 - (2,) ... exceptions.TypeError
|
|
2 -= (2,) ... exceptions.TypeError
|
|
2 * (2,) = (2, 2)
|
|
2 *= (2,) => (2, 2)
|
|
2 / (2,) ... exceptions.TypeError
|
|
2 /= (2,) ... exceptions.TypeError
|
|
2 ** (2,) ... exceptions.TypeError
|
|
2 **= (2,) ... exceptions.TypeError
|
|
2 % (2,) ... exceptions.TypeError
|
|
2 %= (2,) ... exceptions.TypeError
|
|
2 + None ... exceptions.TypeError
|
|
2 += None ... exceptions.TypeError
|
|
2 - None ... exceptions.TypeError
|
|
2 -= None ... exceptions.TypeError
|
|
2 * None ... exceptions.TypeError
|
|
2 *= None ... exceptions.TypeError
|
|
2 / None ... exceptions.TypeError
|
|
2 /= None ... exceptions.TypeError
|
|
2 ** None ... exceptions.TypeError
|
|
2 **= None ... exceptions.TypeError
|
|
2 % None ... exceptions.TypeError
|
|
2 %= None ... exceptions.TypeError
|
|
2 + <MethodNumber 2> = 4
|
|
2 += <MethodNumber 2> => 4
|
|
2 - <MethodNumber 2> = 0
|
|
2 -= <MethodNumber 2> => 0
|
|
2 * <MethodNumber 2> = 4
|
|
2 *= <MethodNumber 2> => 4
|
|
2 / <MethodNumber 2> = 1
|
|
2 /= <MethodNumber 2> => 1
|
|
2 ** <MethodNumber 2> = 4
|
|
2 **= <MethodNumber 2> => 4
|
|
2 % <MethodNumber 2> = 0
|
|
2 %= <MethodNumber 2> => 0
|
|
2 + <CoerceNumber 2> = 4
|
|
2 += <CoerceNumber 2> => 4
|
|
2 - <CoerceNumber 2> = 0
|
|
2 -= <CoerceNumber 2> => 0
|
|
2 * <CoerceNumber 2> = 4
|
|
2 *= <CoerceNumber 2> => 4
|
|
2 / <CoerceNumber 2> = 1
|
|
2 /= <CoerceNumber 2> => 1
|
|
2 ** <CoerceNumber 2> = 4
|
|
2 **= <CoerceNumber 2> => 4
|
|
2 % <CoerceNumber 2> = 0
|
|
2 %= <CoerceNumber 2> => 0
|
|
4.0 + 2 = 6.0
|
|
4.0 += 2 => 6.0
|
|
4.0 - 2 = 2.0
|
|
4.0 -= 2 => 2.0
|
|
4.0 * 2 = 8.0
|
|
4.0 *= 2 => 8.0
|
|
4.0 / 2 = 2.0
|
|
4.0 /= 2 => 2.0
|
|
4.0 ** 2 = 16.0
|
|
4.0 **= 2 => 16.0
|
|
4.0 % 2 = 0.0
|
|
4.0 %= 2 => 0.0
|
|
4.0 + 4.0 = 8.0
|
|
4.0 += 4.0 => 8.0
|
|
4.0 - 4.0 = 0.0
|
|
4.0 -= 4.0 => 0.0
|
|
4.0 * 4.0 = 16.0
|
|
4.0 *= 4.0 => 16.0
|
|
4.0 / 4.0 = 1.0
|
|
4.0 /= 4.0 => 1.0
|
|
4.0 ** 4.0 = 256.0
|
|
4.0 **= 4.0 => 256.0
|
|
4.0 % 4.0 = 0.0
|
|
4.0 %= 4.0 => 0.0
|
|
4.0 + 2 = 6.0
|
|
4.0 += 2 => 6.0
|
|
4.0 - 2 = 2.0
|
|
4.0 -= 2 => 2.0
|
|
4.0 * 2 = 8.0
|
|
4.0 *= 2 => 8.0
|
|
4.0 / 2 = 2.0
|
|
4.0 /= 2 => 2.0
|
|
4.0 ** 2 = 16.0
|
|
4.0 **= 2 => 16.0
|
|
4.0 % 2 = 0.0
|
|
4.0 %= 2 => 0.0
|
|
4.0 + (2+0j) = (6.0 + 0.0j)
|
|
4.0 += (2+0j) => (6.0 + 0.0j)
|
|
4.0 - (2+0j) = (2.0 + 0.0j)
|
|
4.0 -= (2+0j) => (2.0 + 0.0j)
|
|
4.0 * (2+0j) = (8.0 + 0.0j)
|
|
4.0 *= (2+0j) => (8.0 + 0.0j)
|
|
4.0 / (2+0j) = (2.0 + 0.0j)
|
|
4.0 /= (2+0j) => (2.0 + 0.0j)
|
|
4.0 ** (2+0j) = (16.0 + 0.0j)
|
|
4.0 **= (2+0j) => (16.0 + 0.0j)
|
|
4.0 % (2+0j) = (0.0 + 0.0j)
|
|
4.0 %= (2+0j) => (0.0 + 0.0j)
|
|
4.0 + [1] ... exceptions.TypeError
|
|
4.0 += [1] ... exceptions.TypeError
|
|
4.0 - [1] ... exceptions.TypeError
|
|
4.0 -= [1] ... exceptions.TypeError
|
|
4.0 * [1] ... exceptions.TypeError
|
|
4.0 *= [1] ... exceptions.TypeError
|
|
4.0 / [1] ... exceptions.TypeError
|
|
4.0 /= [1] ... exceptions.TypeError
|
|
4.0 ** [1] ... exceptions.TypeError
|
|
4.0 **= [1] ... exceptions.TypeError
|
|
4.0 % [1] ... exceptions.TypeError
|
|
4.0 %= [1] ... exceptions.TypeError
|
|
4.0 + (2,) ... exceptions.TypeError
|
|
4.0 += (2,) ... exceptions.TypeError
|
|
4.0 - (2,) ... exceptions.TypeError
|
|
4.0 -= (2,) ... exceptions.TypeError
|
|
4.0 * (2,) ... exceptions.TypeError
|
|
4.0 *= (2,) ... exceptions.TypeError
|
|
4.0 / (2,) ... exceptions.TypeError
|
|
4.0 /= (2,) ... exceptions.TypeError
|
|
4.0 ** (2,) ... exceptions.TypeError
|
|
4.0 **= (2,) ... exceptions.TypeError
|
|
4.0 % (2,) ... exceptions.TypeError
|
|
4.0 %= (2,) ... exceptions.TypeError
|
|
4.0 + None ... exceptions.TypeError
|
|
4.0 += None ... exceptions.TypeError
|
|
4.0 - None ... exceptions.TypeError
|
|
4.0 -= None ... exceptions.TypeError
|
|
4.0 * None ... exceptions.TypeError
|
|
4.0 *= None ... exceptions.TypeError
|
|
4.0 / None ... exceptions.TypeError
|
|
4.0 /= None ... exceptions.TypeError
|
|
4.0 ** None ... exceptions.TypeError
|
|
4.0 **= None ... exceptions.TypeError
|
|
4.0 % None ... exceptions.TypeError
|
|
4.0 %= None ... exceptions.TypeError
|
|
4.0 + <MethodNumber 2> = 6.0
|
|
4.0 += <MethodNumber 2> => 6.0
|
|
4.0 - <MethodNumber 2> = 2.0
|
|
4.0 -= <MethodNumber 2> => 2.0
|
|
4.0 * <MethodNumber 2> = 8.0
|
|
4.0 *= <MethodNumber 2> => 8.0
|
|
4.0 / <MethodNumber 2> = 2.0
|
|
4.0 /= <MethodNumber 2> => 2.0
|
|
4.0 ** <MethodNumber 2> = 16.0
|
|
4.0 **= <MethodNumber 2> => 16.0
|
|
4.0 % <MethodNumber 2> = 0.0
|
|
4.0 %= <MethodNumber 2> => 0.0
|
|
4.0 + <CoerceNumber 2> = 6.0
|
|
4.0 += <CoerceNumber 2> => 6.0
|
|
4.0 - <CoerceNumber 2> = 2.0
|
|
4.0 -= <CoerceNumber 2> => 2.0
|
|
4.0 * <CoerceNumber 2> = 8.0
|
|
4.0 *= <CoerceNumber 2> => 8.0
|
|
4.0 / <CoerceNumber 2> = 2.0
|
|
4.0 /= <CoerceNumber 2> => 2.0
|
|
4.0 ** <CoerceNumber 2> = 16.0
|
|
4.0 **= <CoerceNumber 2> => 16.0
|
|
4.0 % <CoerceNumber 2> = 0.0
|
|
4.0 %= <CoerceNumber 2> => 0.0
|
|
2 + 2 = 4
|
|
2 += 2 => 4
|
|
2 - 2 = 0
|
|
2 -= 2 => 0
|
|
2 * 2 = 4
|
|
2 *= 2 => 4
|
|
2 / 2 = 1
|
|
2 /= 2 => 1
|
|
2 ** 2 = 4
|
|
2 **= 2 => 4
|
|
2 % 2 = 0
|
|
2 %= 2 => 0
|
|
2 + 4.0 = 6.0
|
|
2 += 4.0 => 6.0
|
|
2 - 4.0 = -2.0
|
|
2 -= 4.0 => -2.0
|
|
2 * 4.0 = 8.0
|
|
2 *= 4.0 => 8.0
|
|
2 / 4.0 = 0.5
|
|
2 /= 4.0 => 0.5
|
|
2 ** 4.0 = 16.0
|
|
2 **= 4.0 => 16.0
|
|
2 % 4.0 = 2.0
|
|
2 %= 4.0 => 2.0
|
|
2 + 2 = 4
|
|
2 += 2 => 4
|
|
2 - 2 = 0
|
|
2 -= 2 => 0
|
|
2 * 2 = 4
|
|
2 *= 2 => 4
|
|
2 / 2 = 1
|
|
2 /= 2 => 1
|
|
2 ** 2 = 4
|
|
2 **= 2 => 4
|
|
2 % 2 = 0
|
|
2 %= 2 => 0
|
|
2 + (2+0j) = (4.0 + 0.0j)
|
|
2 += (2+0j) => (4.0 + 0.0j)
|
|
2 - (2+0j) = (0.0 + 0.0j)
|
|
2 -= (2+0j) => (0.0 + 0.0j)
|
|
2 * (2+0j) = (4.0 + 0.0j)
|
|
2 *= (2+0j) => (4.0 + 0.0j)
|
|
2 / (2+0j) = (1.0 + 0.0j)
|
|
2 /= (2+0j) => (1.0 + 0.0j)
|
|
2 ** (2+0j) = (4.0 + 0.0j)
|
|
2 **= (2+0j) => (4.0 + 0.0j)
|
|
2 % (2+0j) = (0.0 + 0.0j)
|
|
2 %= (2+0j) => (0.0 + 0.0j)
|
|
2 + [1] ... exceptions.TypeError
|
|
2 += [1] ... exceptions.TypeError
|
|
2 - [1] ... exceptions.TypeError
|
|
2 -= [1] ... exceptions.TypeError
|
|
2 * [1] = [1, 1]
|
|
2 *= [1] => [1, 1]
|
|
2 / [1] ... exceptions.TypeError
|
|
2 /= [1] ... exceptions.TypeError
|
|
2 ** [1] ... exceptions.TypeError
|
|
2 **= [1] ... exceptions.TypeError
|
|
2 % [1] ... exceptions.TypeError
|
|
2 %= [1] ... exceptions.TypeError
|
|
2 + (2,) ... exceptions.TypeError
|
|
2 += (2,) ... exceptions.TypeError
|
|
2 - (2,) ... exceptions.TypeError
|
|
2 -= (2,) ... exceptions.TypeError
|
|
2 * (2,) = (2, 2)
|
|
2 *= (2,) => (2, 2)
|
|
2 / (2,) ... exceptions.TypeError
|
|
2 /= (2,) ... exceptions.TypeError
|
|
2 ** (2,) ... exceptions.TypeError
|
|
2 **= (2,) ... exceptions.TypeError
|
|
2 % (2,) ... exceptions.TypeError
|
|
2 %= (2,) ... exceptions.TypeError
|
|
2 + None ... exceptions.TypeError
|
|
2 += None ... exceptions.TypeError
|
|
2 - None ... exceptions.TypeError
|
|
2 -= None ... exceptions.TypeError
|
|
2 * None ... exceptions.TypeError
|
|
2 *= None ... exceptions.TypeError
|
|
2 / None ... exceptions.TypeError
|
|
2 /= None ... exceptions.TypeError
|
|
2 ** None ... exceptions.TypeError
|
|
2 **= None ... exceptions.TypeError
|
|
2 % None ... exceptions.TypeError
|
|
2 %= None ... exceptions.TypeError
|
|
2 + <MethodNumber 2> = 4
|
|
2 += <MethodNumber 2> => 4
|
|
2 - <MethodNumber 2> = 0
|
|
2 -= <MethodNumber 2> => 0
|
|
2 * <MethodNumber 2> = 4
|
|
2 *= <MethodNumber 2> => 4
|
|
2 / <MethodNumber 2> = 1
|
|
2 /= <MethodNumber 2> => 1
|
|
2 ** <MethodNumber 2> = 4
|
|
2 **= <MethodNumber 2> => 4
|
|
2 % <MethodNumber 2> = 0
|
|
2 %= <MethodNumber 2> => 0
|
|
2 + <CoerceNumber 2> = 4
|
|
2 += <CoerceNumber 2> => 4
|
|
2 - <CoerceNumber 2> = 0
|
|
2 -= <CoerceNumber 2> => 0
|
|
2 * <CoerceNumber 2> = 4
|
|
2 *= <CoerceNumber 2> => 4
|
|
2 / <CoerceNumber 2> = 1
|
|
2 /= <CoerceNumber 2> => 1
|
|
2 ** <CoerceNumber 2> = 4
|
|
2 **= <CoerceNumber 2> => 4
|
|
2 % <CoerceNumber 2> = 0
|
|
2 %= <CoerceNumber 2> => 0
|
|
(2+0j) + 2 = (4.0 + 0.0j)
|
|
(2+0j) += 2 => (4.0 + 0.0j)
|
|
(2+0j) - 2 = (0.0 + 0.0j)
|
|
(2+0j) -= 2 => (0.0 + 0.0j)
|
|
(2+0j) * 2 = (4.0 + 0.0j)
|
|
(2+0j) *= 2 => (4.0 + 0.0j)
|
|
(2+0j) / 2 = (1.0 + 0.0j)
|
|
(2+0j) /= 2 => (1.0 + 0.0j)
|
|
(2+0j) ** 2 = (4.0 + 0.0j)
|
|
(2+0j) **= 2 => (4.0 + 0.0j)
|
|
(2+0j) % 2 = (0.0 + 0.0j)
|
|
(2+0j) %= 2 => (0.0 + 0.0j)
|
|
(2+0j) + 4.0 = (6.0 + 0.0j)
|
|
(2+0j) += 4.0 => (6.0 + 0.0j)
|
|
(2+0j) - 4.0 = (-2.0 + 0.0j)
|
|
(2+0j) -= 4.0 => (-2.0 + 0.0j)
|
|
(2+0j) * 4.0 = (8.0 + 0.0j)
|
|
(2+0j) *= 4.0 => (8.0 + 0.0j)
|
|
(2+0j) / 4.0 = (0.5 + 0.0j)
|
|
(2+0j) /= 4.0 => (0.5 + 0.0j)
|
|
(2+0j) ** 4.0 = (16.0 + 0.0j)
|
|
(2+0j) **= 4.0 => (16.0 + 0.0j)
|
|
(2+0j) % 4.0 = (2.0 + 0.0j)
|
|
(2+0j) %= 4.0 => (2.0 + 0.0j)
|
|
(2+0j) + 2 = (4.0 + 0.0j)
|
|
(2+0j) += 2 => (4.0 + 0.0j)
|
|
(2+0j) - 2 = (0.0 + 0.0j)
|
|
(2+0j) -= 2 => (0.0 + 0.0j)
|
|
(2+0j) * 2 = (4.0 + 0.0j)
|
|
(2+0j) *= 2 => (4.0 + 0.0j)
|
|
(2+0j) / 2 = (1.0 + 0.0j)
|
|
(2+0j) /= 2 => (1.0 + 0.0j)
|
|
(2+0j) ** 2 = (4.0 + 0.0j)
|
|
(2+0j) **= 2 => (4.0 + 0.0j)
|
|
(2+0j) % 2 = (0.0 + 0.0j)
|
|
(2+0j) %= 2 => (0.0 + 0.0j)
|
|
(2+0j) + (2+0j) = (4.0 + 0.0j)
|
|
(2+0j) += (2+0j) => (4.0 + 0.0j)
|
|
(2+0j) - (2+0j) = (0.0 + 0.0j)
|
|
(2+0j) -= (2+0j) => (0.0 + 0.0j)
|
|
(2+0j) * (2+0j) = (4.0 + 0.0j)
|
|
(2+0j) *= (2+0j) => (4.0 + 0.0j)
|
|
(2+0j) / (2+0j) = (1.0 + 0.0j)
|
|
(2+0j) /= (2+0j) => (1.0 + 0.0j)
|
|
(2+0j) ** (2+0j) = (4.0 + 0.0j)
|
|
(2+0j) **= (2+0j) => (4.0 + 0.0j)
|
|
(2+0j) % (2+0j) = (0.0 + 0.0j)
|
|
(2+0j) %= (2+0j) => (0.0 + 0.0j)
|
|
(2+0j) + [1] ... exceptions.TypeError
|
|
(2+0j) += [1] ... exceptions.TypeError
|
|
(2+0j) - [1] ... exceptions.TypeError
|
|
(2+0j) -= [1] ... exceptions.TypeError
|
|
(2+0j) * [1] ... exceptions.TypeError
|
|
(2+0j) *= [1] ... exceptions.TypeError
|
|
(2+0j) / [1] ... exceptions.TypeError
|
|
(2+0j) /= [1] ... exceptions.TypeError
|
|
(2+0j) ** [1] ... exceptions.TypeError
|
|
(2+0j) **= [1] ... exceptions.TypeError
|
|
(2+0j) % [1] ... exceptions.TypeError
|
|
(2+0j) %= [1] ... exceptions.TypeError
|
|
(2+0j) + (2,) ... exceptions.TypeError
|
|
(2+0j) += (2,) ... exceptions.TypeError
|
|
(2+0j) - (2,) ... exceptions.TypeError
|
|
(2+0j) -= (2,) ... exceptions.TypeError
|
|
(2+0j) * (2,) ... exceptions.TypeError
|
|
(2+0j) *= (2,) ... exceptions.TypeError
|
|
(2+0j) / (2,) ... exceptions.TypeError
|
|
(2+0j) /= (2,) ... exceptions.TypeError
|
|
(2+0j) ** (2,) ... exceptions.TypeError
|
|
(2+0j) **= (2,) ... exceptions.TypeError
|
|
(2+0j) % (2,) ... exceptions.TypeError
|
|
(2+0j) %= (2,) ... exceptions.TypeError
|
|
(2+0j) + None ... exceptions.TypeError
|
|
(2+0j) += None ... exceptions.TypeError
|
|
(2+0j) - None ... exceptions.TypeError
|
|
(2+0j) -= None ... exceptions.TypeError
|
|
(2+0j) * None ... exceptions.TypeError
|
|
(2+0j) *= None ... exceptions.TypeError
|
|
(2+0j) / None ... exceptions.TypeError
|
|
(2+0j) /= None ... exceptions.TypeError
|
|
(2+0j) ** None ... exceptions.TypeError
|
|
(2+0j) **= None ... exceptions.TypeError
|
|
(2+0j) % None ... exceptions.TypeError
|
|
(2+0j) %= None ... exceptions.TypeError
|
|
(2+0j) + <MethodNumber 2> = (4.0 + 0.0j)
|
|
(2+0j) += <MethodNumber 2> => (4.0 + 0.0j)
|
|
(2+0j) - <MethodNumber 2> = (0.0 + 0.0j)
|
|
(2+0j) -= <MethodNumber 2> => (0.0 + 0.0j)
|
|
(2+0j) * <MethodNumber 2> = (4.0 + 0.0j)
|
|
(2+0j) *= <MethodNumber 2> => (4.0 + 0.0j)
|
|
(2+0j) / <MethodNumber 2> = (1.0 + 0.0j)
|
|
(2+0j) /= <MethodNumber 2> => (1.0 + 0.0j)
|
|
(2+0j) ** <MethodNumber 2> = (4.0 + 0.0j)
|
|
(2+0j) **= <MethodNumber 2> => (4.0 + 0.0j)
|
|
(2+0j) % <MethodNumber 2> = (0.0 + 0.0j)
|
|
(2+0j) %= <MethodNumber 2> => (0.0 + 0.0j)
|
|
(2+0j) + <CoerceNumber 2> = (4.0 + 0.0j)
|
|
(2+0j) += <CoerceNumber 2> => (4.0 + 0.0j)
|
|
(2+0j) - <CoerceNumber 2> = (0.0 + 0.0j)
|
|
(2+0j) -= <CoerceNumber 2> => (0.0 + 0.0j)
|
|
(2+0j) * <CoerceNumber 2> = (4.0 + 0.0j)
|
|
(2+0j) *= <CoerceNumber 2> => (4.0 + 0.0j)
|
|
(2+0j) / <CoerceNumber 2> = (1.0 + 0.0j)
|
|
(2+0j) /= <CoerceNumber 2> => (1.0 + 0.0j)
|
|
(2+0j) ** <CoerceNumber 2> = (4.0 + 0.0j)
|
|
(2+0j) **= <CoerceNumber 2> => (4.0 + 0.0j)
|
|
(2+0j) % <CoerceNumber 2> = (0.0 + 0.0j)
|
|
(2+0j) %= <CoerceNumber 2> => (0.0 + 0.0j)
|
|
[1] + 2 ... exceptions.TypeError
|
|
[1] += 2 ... exceptions.TypeError
|
|
[1] - 2 ... exceptions.TypeError
|
|
[1] -= 2 ... exceptions.TypeError
|
|
[1] * 2 = [1, 1]
|
|
[1] *= 2 => [1, 1]
|
|
[1] / 2 ... exceptions.TypeError
|
|
[1] /= 2 ... exceptions.TypeError
|
|
[1] ** 2 ... exceptions.TypeError
|
|
[1] **= 2 ... exceptions.TypeError
|
|
[1] % 2 ... exceptions.TypeError
|
|
[1] %= 2 ... exceptions.TypeError
|
|
[1] + 4.0 ... exceptions.TypeError
|
|
[1] += 4.0 ... exceptions.TypeError
|
|
[1] - 4.0 ... exceptions.TypeError
|
|
[1] -= 4.0 ... exceptions.TypeError
|
|
[1] * 4.0 ... exceptions.TypeError
|
|
[1] *= 4.0 ... exceptions.TypeError
|
|
[1] / 4.0 ... exceptions.TypeError
|
|
[1] /= 4.0 ... exceptions.TypeError
|
|
[1] ** 4.0 ... exceptions.TypeError
|
|
[1] **= 4.0 ... exceptions.TypeError
|
|
[1] % 4.0 ... exceptions.TypeError
|
|
[1] %= 4.0 ... exceptions.TypeError
|
|
[1] + 2 ... exceptions.TypeError
|
|
[1] += 2 ... exceptions.TypeError
|
|
[1] - 2 ... exceptions.TypeError
|
|
[1] -= 2 ... exceptions.TypeError
|
|
[1] * 2 = [1, 1]
|
|
[1] *= 2 => [1, 1]
|
|
[1] / 2 ... exceptions.TypeError
|
|
[1] /= 2 ... exceptions.TypeError
|
|
[1] ** 2 ... exceptions.TypeError
|
|
[1] **= 2 ... exceptions.TypeError
|
|
[1] % 2 ... exceptions.TypeError
|
|
[1] %= 2 ... exceptions.TypeError
|
|
[1] + (2+0j) ... exceptions.TypeError
|
|
[1] += (2+0j) ... exceptions.TypeError
|
|
[1] - (2+0j) ... exceptions.TypeError
|
|
[1] -= (2+0j) ... exceptions.TypeError
|
|
[1] * (2+0j) ... exceptions.TypeError
|
|
[1] *= (2+0j) ... exceptions.TypeError
|
|
[1] / (2+0j) ... exceptions.TypeError
|
|
[1] /= (2+0j) ... exceptions.TypeError
|
|
[1] ** (2+0j) ... exceptions.TypeError
|
|
[1] **= (2+0j) ... exceptions.TypeError
|
|
[1] % (2+0j) ... exceptions.TypeError
|
|
[1] %= (2+0j) ... exceptions.TypeError
|
|
[1] + [1] = [1, 1]
|
|
[1] += [1] => [1, 1]
|
|
[1] - [1] ... exceptions.TypeError
|
|
[1] -= [1] ... exceptions.TypeError
|
|
[1] * [1] ... exceptions.TypeError
|
|
[1] *= [1] ... exceptions.TypeError
|
|
[1] / [1] ... exceptions.TypeError
|
|
[1] /= [1] ... exceptions.TypeError
|
|
[1] ** [1] ... exceptions.TypeError
|
|
[1] **= [1] ... exceptions.TypeError
|
|
[1] % [1] ... exceptions.TypeError
|
|
[1] %= [1] ... exceptions.TypeError
|
|
[1] + (2,) ... exceptions.TypeError
|
|
[1] += (2,) => [1, 2]
|
|
[1] - (2,) ... exceptions.TypeError
|
|
[1] -= (2,) ... exceptions.TypeError
|
|
[1] * (2,) ... exceptions.TypeError
|
|
[1] *= (2,) ... exceptions.TypeError
|
|
[1] / (2,) ... exceptions.TypeError
|
|
[1] /= (2,) ... exceptions.TypeError
|
|
[1] ** (2,) ... exceptions.TypeError
|
|
[1] **= (2,) ... exceptions.TypeError
|
|
[1] % (2,) ... exceptions.TypeError
|
|
[1] %= (2,) ... exceptions.TypeError
|
|
[1] + None ... exceptions.TypeError
|
|
[1] += None ... exceptions.TypeError
|
|
[1] - None ... exceptions.TypeError
|
|
[1] -= None ... exceptions.TypeError
|
|
[1] * None ... exceptions.TypeError
|
|
[1] *= None ... exceptions.TypeError
|
|
[1] / None ... exceptions.TypeError
|
|
[1] /= None ... exceptions.TypeError
|
|
[1] ** None ... exceptions.TypeError
|
|
[1] **= None ... exceptions.TypeError
|
|
[1] % None ... exceptions.TypeError
|
|
[1] %= None ... exceptions.TypeError
|
|
[1] + <MethodNumber 2> ... exceptions.TypeError
|
|
[1] += <MethodNumber 2> ... exceptions.TypeError
|
|
[1] - <MethodNumber 2> ... exceptions.TypeError
|
|
[1] -= <MethodNumber 2> ... exceptions.TypeError
|
|
[1] * <MethodNumber 2> = [1, 1]
|
|
[1] *= <MethodNumber 2> => [1, 1]
|
|
[1] / <MethodNumber 2> ... exceptions.TypeError
|
|
[1] /= <MethodNumber 2> ... exceptions.TypeError
|
|
[1] ** <MethodNumber 2> ... exceptions.TypeError
|
|
[1] **= <MethodNumber 2> ... exceptions.TypeError
|
|
[1] % <MethodNumber 2> ... exceptions.TypeError
|
|
[1] %= <MethodNumber 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> = [1, 1]
|
|
[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
|
|
(2,) + 2 ... exceptions.TypeError
|
|
(2,) += 2 ... exceptions.TypeError
|
|
(2,) - 2 ... exceptions.TypeError
|
|
(2,) -= 2 ... exceptions.TypeError
|
|
(2,) * 2 = (2, 2)
|
|
(2,) *= 2 => (2, 2)
|
|
(2,) / 2 ... exceptions.TypeError
|
|
(2,) /= 2 ... exceptions.TypeError
|
|
(2,) ** 2 ... exceptions.TypeError
|
|
(2,) **= 2 ... exceptions.TypeError
|
|
(2,) % 2 ... exceptions.TypeError
|
|
(2,) %= 2 ... exceptions.TypeError
|
|
(2,) + 4.0 ... exceptions.TypeError
|
|
(2,) += 4.0 ... exceptions.TypeError
|
|
(2,) - 4.0 ... exceptions.TypeError
|
|
(2,) -= 4.0 ... exceptions.TypeError
|
|
(2,) * 4.0 ... exceptions.TypeError
|
|
(2,) *= 4.0 ... exceptions.TypeError
|
|
(2,) / 4.0 ... exceptions.TypeError
|
|
(2,) /= 4.0 ... exceptions.TypeError
|
|
(2,) ** 4.0 ... exceptions.TypeError
|
|
(2,) **= 4.0 ... exceptions.TypeError
|
|
(2,) % 4.0 ... exceptions.TypeError
|
|
(2,) %= 4.0 ... exceptions.TypeError
|
|
(2,) + 2 ... exceptions.TypeError
|
|
(2,) += 2 ... exceptions.TypeError
|
|
(2,) - 2 ... exceptions.TypeError
|
|
(2,) -= 2 ... exceptions.TypeError
|
|
(2,) * 2 = (2, 2)
|
|
(2,) *= 2 => (2, 2)
|
|
(2,) / 2 ... exceptions.TypeError
|
|
(2,) /= 2 ... exceptions.TypeError
|
|
(2,) ** 2 ... exceptions.TypeError
|
|
(2,) **= 2 ... exceptions.TypeError
|
|
(2,) % 2 ... exceptions.TypeError
|
|
(2,) %= 2 ... exceptions.TypeError
|
|
(2,) + (2+0j) ... exceptions.TypeError
|
|
(2,) += (2+0j) ... exceptions.TypeError
|
|
(2,) - (2+0j) ... exceptions.TypeError
|
|
(2,) -= (2+0j) ... exceptions.TypeError
|
|
(2,) * (2+0j) ... exceptions.TypeError
|
|
(2,) *= (2+0j) ... exceptions.TypeError
|
|
(2,) / (2+0j) ... exceptions.TypeError
|
|
(2,) /= (2+0j) ... exceptions.TypeError
|
|
(2,) ** (2+0j) ... exceptions.TypeError
|
|
(2,) **= (2+0j) ... exceptions.TypeError
|
|
(2,) % (2+0j) ... exceptions.TypeError
|
|
(2,) %= (2+0j) ... exceptions.TypeError
|
|
(2,) + [1] ... exceptions.TypeError
|
|
(2,) += [1] ... exceptions.TypeError
|
|
(2,) - [1] ... exceptions.TypeError
|
|
(2,) -= [1] ... exceptions.TypeError
|
|
(2,) * [1] ... exceptions.TypeError
|
|
(2,) *= [1] ... exceptions.TypeError
|
|
(2,) / [1] ... exceptions.TypeError
|
|
(2,) /= [1] ... exceptions.TypeError
|
|
(2,) ** [1] ... exceptions.TypeError
|
|
(2,) **= [1] ... exceptions.TypeError
|
|
(2,) % [1] ... exceptions.TypeError
|
|
(2,) %= [1] ... exceptions.TypeError
|
|
(2,) + (2,) = (2, 2)
|
|
(2,) += (2,) => (2, 2)
|
|
(2,) - (2,) ... exceptions.TypeError
|
|
(2,) -= (2,) ... exceptions.TypeError
|
|
(2,) * (2,) ... exceptions.TypeError
|
|
(2,) *= (2,) ... exceptions.TypeError
|
|
(2,) / (2,) ... exceptions.TypeError
|
|
(2,) /= (2,) ... exceptions.TypeError
|
|
(2,) ** (2,) ... exceptions.TypeError
|
|
(2,) **= (2,) ... exceptions.TypeError
|
|
(2,) % (2,) ... exceptions.TypeError
|
|
(2,) %= (2,) ... exceptions.TypeError
|
|
(2,) + None ... exceptions.TypeError
|
|
(2,) += None ... exceptions.TypeError
|
|
(2,) - None ... exceptions.TypeError
|
|
(2,) -= None ... exceptions.TypeError
|
|
(2,) * None ... exceptions.TypeError
|
|
(2,) *= None ... exceptions.TypeError
|
|
(2,) / None ... exceptions.TypeError
|
|
(2,) /= None ... exceptions.TypeError
|
|
(2,) ** None ... exceptions.TypeError
|
|
(2,) **= None ... exceptions.TypeError
|
|
(2,) % None ... exceptions.TypeError
|
|
(2,) %= None ... exceptions.TypeError
|
|
(2,) + <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) += <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) - <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) -= <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) * <MethodNumber 2> = (2, 2)
|
|
(2,) *= <MethodNumber 2> => (2, 2)
|
|
(2,) / <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) /= <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) ** <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) **= <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) % <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) %= <MethodNumber 2> ... exceptions.TypeError
|
|
(2,) + <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) += <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) - <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) -= <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) * <CoerceNumber 2> = (2, 2)
|
|
(2,) *= <CoerceNumber 2> => (2, 2)
|
|
(2,) / <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) /= <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) ** <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) **= <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) % <CoerceNumber 2> ... exceptions.TypeError
|
|
(2,) %= <CoerceNumber 2> ... exceptions.TypeError
|
|
None + 2 ... exceptions.TypeError
|
|
None += 2 ... exceptions.TypeError
|
|
None - 2 ... exceptions.TypeError
|
|
None -= 2 ... exceptions.TypeError
|
|
None * 2 ... exceptions.TypeError
|
|
None *= 2 ... exceptions.TypeError
|
|
None / 2 ... exceptions.TypeError
|
|
None /= 2 ... exceptions.TypeError
|
|
None ** 2 ... exceptions.TypeError
|
|
None **= 2 ... exceptions.TypeError
|
|
None % 2 ... exceptions.TypeError
|
|
None %= 2 ... exceptions.TypeError
|
|
None + 4.0 ... exceptions.TypeError
|
|
None += 4.0 ... exceptions.TypeError
|
|
None - 4.0 ... exceptions.TypeError
|
|
None -= 4.0 ... exceptions.TypeError
|
|
None * 4.0 ... exceptions.TypeError
|
|
None *= 4.0 ... exceptions.TypeError
|
|
None / 4.0 ... exceptions.TypeError
|
|
None /= 4.0 ... exceptions.TypeError
|
|
None ** 4.0 ... exceptions.TypeError
|
|
None **= 4.0 ... exceptions.TypeError
|
|
None % 4.0 ... exceptions.TypeError
|
|
None %= 4.0 ... exceptions.TypeError
|
|
None + 2 ... exceptions.TypeError
|
|
None += 2 ... exceptions.TypeError
|
|
None - 2 ... exceptions.TypeError
|
|
None -= 2 ... exceptions.TypeError
|
|
None * 2 ... exceptions.TypeError
|
|
None *= 2 ... exceptions.TypeError
|
|
None / 2 ... exceptions.TypeError
|
|
None /= 2 ... exceptions.TypeError
|
|
None ** 2 ... exceptions.TypeError
|
|
None **= 2 ... exceptions.TypeError
|
|
None % 2 ... exceptions.TypeError
|
|
None %= 2 ... exceptions.TypeError
|
|
None + (2+0j) ... exceptions.TypeError
|
|
None += (2+0j) ... exceptions.TypeError
|
|
None - (2+0j) ... exceptions.TypeError
|
|
None -= (2+0j) ... exceptions.TypeError
|
|
None * (2+0j) ... exceptions.TypeError
|
|
None *= (2+0j) ... exceptions.TypeError
|
|
None / (2+0j) ... exceptions.TypeError
|
|
None /= (2+0j) ... exceptions.TypeError
|
|
None ** (2+0j) ... exceptions.TypeError
|
|
None **= (2+0j) ... exceptions.TypeError
|
|
None % (2+0j) ... exceptions.TypeError
|
|
None %= (2+0j) ... exceptions.TypeError
|
|
None + [1] ... exceptions.TypeError
|
|
None += [1] ... exceptions.TypeError
|
|
None - [1] ... exceptions.TypeError
|
|
None -= [1] ... exceptions.TypeError
|
|
None * [1] ... exceptions.TypeError
|
|
None *= [1] ... exceptions.TypeError
|
|
None / [1] ... exceptions.TypeError
|
|
None /= [1] ... exceptions.TypeError
|
|
None ** [1] ... exceptions.TypeError
|
|
None **= [1] ... exceptions.TypeError
|
|
None % [1] ... exceptions.TypeError
|
|
None %= [1] ... exceptions.TypeError
|
|
None + (2,) ... exceptions.TypeError
|
|
None += (2,) ... exceptions.TypeError
|
|
None - (2,) ... exceptions.TypeError
|
|
None -= (2,) ... exceptions.TypeError
|
|
None * (2,) ... exceptions.TypeError
|
|
None *= (2,) ... exceptions.TypeError
|
|
None / (2,) ... exceptions.TypeError
|
|
None /= (2,) ... exceptions.TypeError
|
|
None ** (2,) ... exceptions.TypeError
|
|
None **= (2,) ... exceptions.TypeError
|
|
None % (2,) ... exceptions.TypeError
|
|
None %= (2,) ... exceptions.TypeError
|
|
None + None ... exceptions.TypeError
|
|
None += None ... exceptions.TypeError
|
|
None - None ... exceptions.TypeError
|
|
None -= None ... exceptions.TypeError
|
|
None * None ... exceptions.TypeError
|
|
None *= None ... exceptions.TypeError
|
|
None / None ... exceptions.TypeError
|
|
None /= None ... exceptions.TypeError
|
|
None ** None ... exceptions.TypeError
|
|
None **= None ... exceptions.TypeError
|
|
None % None ... exceptions.TypeError
|
|
None %= None ... exceptions.TypeError
|
|
None + <MethodNumber 2> ... exceptions.TypeError
|
|
None += <MethodNumber 2> ... exceptions.TypeError
|
|
None - <MethodNumber 2> ... exceptions.TypeError
|
|
None -= <MethodNumber 2> ... exceptions.TypeError
|
|
None * <MethodNumber 2> ... exceptions.TypeError
|
|
None *= <MethodNumber 2> ... exceptions.TypeError
|
|
None / <MethodNumber 2> ... exceptions.TypeError
|
|
None /= <MethodNumber 2> ... exceptions.TypeError
|
|
None ** <MethodNumber 2> ... exceptions.TypeError
|
|
None **= <MethodNumber 2> ... exceptions.TypeError
|
|
None % <MethodNumber 2> ... exceptions.TypeError
|
|
None %= <MethodNumber 2> ... exceptions.TypeError
|
|
None + <CoerceNumber 2> ... exceptions.TypeError
|
|
None += <CoerceNumber 2> ... exceptions.TypeError
|
|
None - <CoerceNumber 2> ... exceptions.TypeError
|
|
None -= <CoerceNumber 2> ... exceptions.TypeError
|
|
None * <CoerceNumber 2> ... exceptions.TypeError
|
|
None *= <CoerceNumber 2> ... exceptions.TypeError
|
|
None / <CoerceNumber 2> ... exceptions.TypeError
|
|
None /= <CoerceNumber 2> ... exceptions.TypeError
|
|
None ** <CoerceNumber 2> ... exceptions.TypeError
|
|
None **= <CoerceNumber 2> ... exceptions.TypeError
|
|
None % <CoerceNumber 2> ... exceptions.TypeError
|
|
None %= <CoerceNumber 2> ... exceptions.TypeError
|
|
<MethodNumber 2> + 2 = 4
|
|
<MethodNumber 2> += 2 => 4
|
|
<MethodNumber 2> - 2 = 0
|
|
<MethodNumber 2> -= 2 => 0
|
|
<MethodNumber 2> * 2 = 4
|
|
<MethodNumber 2> *= 2 => 4
|
|
<MethodNumber 2> / 2 = 1
|
|
<MethodNumber 2> /= 2 => 1
|
|
<MethodNumber 2> ** 2 = 4
|
|
<MethodNumber 2> **= 2 => 4
|
|
<MethodNumber 2> % 2 = 0
|
|
<MethodNumber 2> %= 2 => 0
|
|
<MethodNumber 2> + 4.0 = 6.0
|
|
<MethodNumber 2> += 4.0 => 6.0
|
|
<MethodNumber 2> - 4.0 = -2.0
|
|
<MethodNumber 2> -= 4.0 => -2.0
|
|
<MethodNumber 2> * 4.0 = 8.0
|
|
<MethodNumber 2> *= 4.0 => 8.0
|
|
<MethodNumber 2> / 4.0 = 0.5
|
|
<MethodNumber 2> /= 4.0 => 0.5
|
|
<MethodNumber 2> ** 4.0 = 16.0
|
|
<MethodNumber 2> **= 4.0 => 16.0
|
|
<MethodNumber 2> % 4.0 = 2.0
|
|
<MethodNumber 2> %= 4.0 => 2.0
|
|
<MethodNumber 2> + 2 = 4
|
|
<MethodNumber 2> += 2 => 4
|
|
<MethodNumber 2> - 2 = 0
|
|
<MethodNumber 2> -= 2 => 0
|
|
<MethodNumber 2> * 2 = 4
|
|
<MethodNumber 2> *= 2 => 4
|
|
<MethodNumber 2> / 2 = 1
|
|
<MethodNumber 2> /= 2 => 1
|
|
<MethodNumber 2> ** 2 = 4
|
|
<MethodNumber 2> **= 2 => 4
|
|
<MethodNumber 2> % 2 = 0
|
|
<MethodNumber 2> %= 2 => 0
|
|
<MethodNumber 2> + (2+0j) = (4.0 + 0.0j)
|
|
<MethodNumber 2> += (2+0j) => (4.0 + 0.0j)
|
|
<MethodNumber 2> - (2+0j) = (0.0 + 0.0j)
|
|
<MethodNumber 2> -= (2+0j) => (0.0 + 0.0j)
|
|
<MethodNumber 2> * (2+0j) = (4.0 + 0.0j)
|
|
<MethodNumber 2> *= (2+0j) => (4.0 + 0.0j)
|
|
<MethodNumber 2> / (2+0j) = (1.0 + 0.0j)
|
|
<MethodNumber 2> /= (2+0j) => (1.0 + 0.0j)
|
|
<MethodNumber 2> ** (2+0j) = (4.0 + 0.0j)
|
|
<MethodNumber 2> **= (2+0j) => (4.0 + 0.0j)
|
|
<MethodNumber 2> % (2+0j) = (0.0 + 0.0j)
|
|
<MethodNumber 2> %= (2+0j) => (0.0 + 0.0j)
|
|
<MethodNumber 2> + [1] ... exceptions.TypeError
|
|
<MethodNumber 2> += [1] ... exceptions.TypeError
|
|
<MethodNumber 2> - [1] ... exceptions.TypeError
|
|
<MethodNumber 2> -= [1] ... exceptions.TypeError
|
|
<MethodNumber 2> * [1] = [1, 1]
|
|
<MethodNumber 2> *= [1] => [1, 1]
|
|
<MethodNumber 2> / [1] ... exceptions.TypeError
|
|
<MethodNumber 2> /= [1] ... exceptions.TypeError
|
|
<MethodNumber 2> ** [1] ... exceptions.TypeError
|
|
<MethodNumber 2> **= [1] ... exceptions.TypeError
|
|
<MethodNumber 2> % [1] ... exceptions.TypeError
|
|
<MethodNumber 2> %= [1] ... exceptions.TypeError
|
|
<MethodNumber 2> + (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> += (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> - (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> -= (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> * (2,) = (2, 2)
|
|
<MethodNumber 2> *= (2,) => (2, 2)
|
|
<MethodNumber 2> / (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> /= (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> ** (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> **= (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> % (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> %= (2,) ... exceptions.TypeError
|
|
<MethodNumber 2> + None ... exceptions.TypeError
|
|
<MethodNumber 2> += None ... exceptions.TypeError
|
|
<MethodNumber 2> - None ... exceptions.TypeError
|
|
<MethodNumber 2> -= None ... exceptions.TypeError
|
|
<MethodNumber 2> * None ... exceptions.TypeError
|
|
<MethodNumber 2> *= None ... exceptions.TypeError
|
|
<MethodNumber 2> / None ... exceptions.TypeError
|
|
<MethodNumber 2> /= None ... exceptions.TypeError
|
|
<MethodNumber 2> ** None ... exceptions.TypeError
|
|
<MethodNumber 2> **= None ... exceptions.TypeError
|
|
<MethodNumber 2> % None ... exceptions.TypeError
|
|
<MethodNumber 2> %= None ... exceptions.TypeError
|
|
<MethodNumber 2> + <MethodNumber 2> = 4
|
|
<MethodNumber 2> += <MethodNumber 2> => 4
|
|
<MethodNumber 2> - <MethodNumber 2> = 0
|
|
<MethodNumber 2> -= <MethodNumber 2> => 0
|
|
<MethodNumber 2> * <MethodNumber 2> = 4
|
|
<MethodNumber 2> *= <MethodNumber 2> => 4
|
|
<MethodNumber 2> / <MethodNumber 2> = 1
|
|
<MethodNumber 2> /= <MethodNumber 2> => 1
|
|
<MethodNumber 2> ** <MethodNumber 2> = 4
|
|
<MethodNumber 2> **= <MethodNumber 2> => 4
|
|
<MethodNumber 2> % <MethodNumber 2> = 0
|
|
<MethodNumber 2> %= <MethodNumber 2> => 0
|
|
<MethodNumber 2> + <CoerceNumber 2> = 4
|
|
<MethodNumber 2> += <CoerceNumber 2> => 4
|
|
<MethodNumber 2> - <CoerceNumber 2> = 0
|
|
<MethodNumber 2> -= <CoerceNumber 2> => 0
|
|
<MethodNumber 2> * <CoerceNumber 2> = 4
|
|
<MethodNumber 2> *= <CoerceNumber 2> => 4
|
|
<MethodNumber 2> / <CoerceNumber 2> = 1
|
|
<MethodNumber 2> /= <CoerceNumber 2> => 1
|
|
<MethodNumber 2> ** <CoerceNumber 2> = 4
|
|
<MethodNumber 2> **= <CoerceNumber 2> => 4
|
|
<MethodNumber 2> % <CoerceNumber 2> = 0
|
|
<MethodNumber 2> %= <CoerceNumber 2> => 0
|
|
<CoerceNumber 2> + 2 = 4
|
|
<CoerceNumber 2> += 2 => 4
|
|
<CoerceNumber 2> - 2 = 0
|
|
<CoerceNumber 2> -= 2 => 0
|
|
<CoerceNumber 2> * 2 = 4
|
|
<CoerceNumber 2> *= 2 => 4
|
|
<CoerceNumber 2> / 2 = 1
|
|
<CoerceNumber 2> /= 2 => 1
|
|
<CoerceNumber 2> ** 2 = 4
|
|
<CoerceNumber 2> **= 2 => 4
|
|
<CoerceNumber 2> % 2 = 0
|
|
<CoerceNumber 2> %= 2 => 0
|
|
<CoerceNumber 2> + 4.0 = 6.0
|
|
<CoerceNumber 2> += 4.0 => 6.0
|
|
<CoerceNumber 2> - 4.0 = -2.0
|
|
<CoerceNumber 2> -= 4.0 => -2.0
|
|
<CoerceNumber 2> * 4.0 = 8.0
|
|
<CoerceNumber 2> *= 4.0 => 8.0
|
|
<CoerceNumber 2> / 4.0 = 0.5
|
|
<CoerceNumber 2> /= 4.0 => 0.5
|
|
<CoerceNumber 2> ** 4.0 = 16.0
|
|
<CoerceNumber 2> **= 4.0 => 16.0
|
|
<CoerceNumber 2> % 4.0 = 2.0
|
|
<CoerceNumber 2> %= 4.0 => 2.0
|
|
<CoerceNumber 2> + 2 = 4
|
|
<CoerceNumber 2> += 2 => 4
|
|
<CoerceNumber 2> - 2 = 0
|
|
<CoerceNumber 2> -= 2 => 0
|
|
<CoerceNumber 2> * 2 = 4
|
|
<CoerceNumber 2> *= 2 => 4
|
|
<CoerceNumber 2> / 2 = 1
|
|
<CoerceNumber 2> /= 2 => 1
|
|
<CoerceNumber 2> ** 2 = 4
|
|
<CoerceNumber 2> **= 2 => 4
|
|
<CoerceNumber 2> % 2 = 0
|
|
<CoerceNumber 2> %= 2 => 0
|
|
<CoerceNumber 2> + (2+0j) = (4.0 + 0.0j)
|
|
<CoerceNumber 2> += (2+0j) => (4.0 + 0.0j)
|
|
<CoerceNumber 2> - (2+0j) = (0.0 + 0.0j)
|
|
<CoerceNumber 2> -= (2+0j) => (0.0 + 0.0j)
|
|
<CoerceNumber 2> * (2+0j) = (4.0 + 0.0j)
|
|
<CoerceNumber 2> *= (2+0j) => (4.0 + 0.0j)
|
|
<CoerceNumber 2> / (2+0j) = (1.0 + 0.0j)
|
|
<CoerceNumber 2> /= (2+0j) => (1.0 + 0.0j)
|
|
<CoerceNumber 2> ** (2+0j) = (4.0 + 0.0j)
|
|
<CoerceNumber 2> **= (2+0j) => (4.0 + 0.0j)
|
|
<CoerceNumber 2> % (2+0j) = (0.0 + 0.0j)
|
|
<CoerceNumber 2> %= (2+0j) => (0.0 + 0.0j)
|
|
<CoerceNumber 2> + [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> += [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> - [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> -= [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> * [1] = [1, 1]
|
|
<CoerceNumber 2> *= [1] => [1, 1]
|
|
<CoerceNumber 2> / [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> /= [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> ** [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> **= [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> % [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> %= [1] ... exceptions.TypeError
|
|
<CoerceNumber 2> + (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> += (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> - (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> -= (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> * (2,) = (2, 2)
|
|
<CoerceNumber 2> *= (2,) => (2, 2)
|
|
<CoerceNumber 2> / (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> /= (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> ** (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> **= (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> % (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> %= (2,) ... exceptions.TypeError
|
|
<CoerceNumber 2> + None ... exceptions.TypeError
|
|
<CoerceNumber 2> += None ... exceptions.TypeError
|
|
<CoerceNumber 2> - None ... exceptions.TypeError
|
|
<CoerceNumber 2> -= None ... exceptions.TypeError
|
|
<CoerceNumber 2> * None ... exceptions.TypeError
|
|
<CoerceNumber 2> *= None ... exceptions.TypeError
|
|
<CoerceNumber 2> / None ... exceptions.TypeError
|
|
<CoerceNumber 2> /= None ... exceptions.TypeError
|
|
<CoerceNumber 2> ** None ... exceptions.TypeError
|
|
<CoerceNumber 2> **= None ... exceptions.TypeError
|
|
<CoerceNumber 2> % None ... exceptions.TypeError
|
|
<CoerceNumber 2> %= None ... exceptions.TypeError
|
|
<CoerceNumber 2> + <MethodNumber 2> = 4
|
|
<CoerceNumber 2> += <MethodNumber 2> => 4
|
|
<CoerceNumber 2> - <MethodNumber 2> = 0
|
|
<CoerceNumber 2> -= <MethodNumber 2> => 0
|
|
<CoerceNumber 2> * <MethodNumber 2> = 4
|
|
<CoerceNumber 2> *= <MethodNumber 2> => 4
|
|
<CoerceNumber 2> / <MethodNumber 2> = 1
|
|
<CoerceNumber 2> /= <MethodNumber 2> => 1
|
|
<CoerceNumber 2> ** <MethodNumber 2> = 4
|
|
<CoerceNumber 2> **= <MethodNumber 2> => 4
|
|
<CoerceNumber 2> % <MethodNumber 2> = 0
|
|
<CoerceNumber 2> %= <MethodNumber 2> => 0
|
|
<CoerceNumber 2> + <CoerceNumber 2> = 4
|
|
<CoerceNumber 2> += <CoerceNumber 2> => 4
|
|
<CoerceNumber 2> - <CoerceNumber 2> = 0
|
|
<CoerceNumber 2> -= <CoerceNumber 2> => 0
|
|
<CoerceNumber 2> * <CoerceNumber 2> = 4
|
|
<CoerceNumber 2> *= <CoerceNumber 2> => 4
|
|
<CoerceNumber 2> / <CoerceNumber 2> = 1
|
|
<CoerceNumber 2> /= <CoerceNumber 2> => 1
|
|
<CoerceNumber 2> ** <CoerceNumber 2> = 4
|
|
<CoerceNumber 2> **= <CoerceNumber 2> => 4
|
|
<CoerceNumber 2> % <CoerceNumber 2> = 0
|
|
<CoerceNumber 2> %= <CoerceNumber 2> => 0
|
|
divmod(2, 2) = (1, 0)
|
|
divmod(2, 4.0) = (0.0, 2.0)
|
|
divmod(2, 2) = (1L, 0L)
|
|
divmod(2, (2+0j)) = ((1+0j), 0j)
|
|
divmod(2, [1]) ... exceptions.TypeError
|
|
divmod(2, (2,)) ... exceptions.TypeError
|
|
divmod(2, None) ... exceptions.TypeError
|
|
divmod(2, <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod(2, <CoerceNumber 2>) = (1, 0)
|
|
divmod(4.0, 2) = (2.0, 0.0)
|
|
divmod(4.0, 4.0) = (1.0, 0.0)
|
|
divmod(4.0, 2) = (2.0, 0.0)
|
|
divmod(4.0, (2+0j)) = ((2+0j), 0j)
|
|
divmod(4.0, [1]) ... exceptions.TypeError
|
|
divmod(4.0, (2,)) ... exceptions.TypeError
|
|
divmod(4.0, None) ... exceptions.TypeError
|
|
divmod(4.0, <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod(4.0, <CoerceNumber 2>) = (2.0, 0.0)
|
|
divmod(2, 2) = (1L, 0L)
|
|
divmod(2, 4.0) = (0.0, 2.0)
|
|
divmod(2, 2) = (1L, 0L)
|
|
divmod(2, (2+0j)) = ((1+0j), 0j)
|
|
divmod(2, [1]) ... exceptions.TypeError
|
|
divmod(2, (2,)) ... exceptions.TypeError
|
|
divmod(2, None) ... exceptions.TypeError
|
|
divmod(2, <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod(2, <CoerceNumber 2>) = (1L, 0L)
|
|
divmod((2+0j), 2) = ((1+0j), 0j)
|
|
divmod((2+0j), 4.0) = (0j, (2+0j))
|
|
divmod((2+0j), 2) = ((1+0j), 0j)
|
|
divmod((2+0j), (2+0j)) = ((1+0j), 0j)
|
|
divmod((2+0j), [1]) ... exceptions.TypeError
|
|
divmod((2+0j), (2,)) ... exceptions.TypeError
|
|
divmod((2+0j), None) ... exceptions.TypeError
|
|
divmod((2+0j), <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod((2+0j), <CoerceNumber 2>) = ((1+0j), 0j)
|
|
divmod([1], 2) ... exceptions.TypeError
|
|
divmod([1], 4.0) ... exceptions.TypeError
|
|
divmod([1], 2) ... exceptions.TypeError
|
|
divmod([1], (2+0j)) ... exceptions.TypeError
|
|
divmod([1], [1]) ... exceptions.TypeError
|
|
divmod([1], (2,)) ... exceptions.TypeError
|
|
divmod([1], None) ... exceptions.TypeError
|
|
divmod([1], <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod([1], <CoerceNumber 2>) ... exceptions.TypeError
|
|
divmod((2,), 2) ... exceptions.TypeError
|
|
divmod((2,), 4.0) ... exceptions.TypeError
|
|
divmod((2,), 2) ... exceptions.TypeError
|
|
divmod((2,), (2+0j)) ... exceptions.TypeError
|
|
divmod((2,), [1]) ... exceptions.TypeError
|
|
divmod((2,), (2,)) ... exceptions.TypeError
|
|
divmod((2,), None) ... exceptions.TypeError
|
|
divmod((2,), <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod((2,), <CoerceNumber 2>) ... exceptions.TypeError
|
|
divmod(None, 2) ... exceptions.TypeError
|
|
divmod(None, 4.0) ... exceptions.TypeError
|
|
divmod(None, 2) ... exceptions.TypeError
|
|
divmod(None, (2+0j)) ... exceptions.TypeError
|
|
divmod(None, [1]) ... exceptions.TypeError
|
|
divmod(None, (2,)) ... exceptions.TypeError
|
|
divmod(None, None) ... exceptions.TypeError
|
|
divmod(None, <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod(None, <CoerceNumber 2>) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, 2) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, 4.0) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, 2) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, (2+0j)) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, [1]) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, (2,)) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, None) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod(<MethodNumber 2>, <CoerceNumber 2>) ... exceptions.TypeError
|
|
divmod(<CoerceNumber 2>, 2) = (1, 0)
|
|
divmod(<CoerceNumber 2>, 4.0) = (0.0, 2.0)
|
|
divmod(<CoerceNumber 2>, 2) = (1L, 0L)
|
|
divmod(<CoerceNumber 2>, (2+0j)) = ((1+0j), 0j)
|
|
divmod(<CoerceNumber 2>, [1]) ... exceptions.TypeError
|
|
divmod(<CoerceNumber 2>, (2,)) ... exceptions.TypeError
|
|
divmod(<CoerceNumber 2>, None) ... exceptions.TypeError
|
|
divmod(<CoerceNumber 2>, <MethodNumber 2>) ... exceptions.TypeError
|
|
divmod(<CoerceNumber 2>, <CoerceNumber 2>) = (1, 0)
|