blob: 42097502b38dc275d0ebfdca9f7db88b3b853fbb [file] [log] [blame]
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001test_coercion
22 + 2 = 4
32 += 2 => 4
42 - 2 = 0
52 -= 2 => 0
62 * 2 = 4
72 *= 2 => 4
82 / 2 = 1
92 /= 2 => 1
102 ** 2 = 4
112 **= 2 => 4
122 % 2 = 0
132 %= 2 => 0
Neil Schemenauer38796d02001-01-03 01:52:11 +0000142 + 4.0 = 6.0
152 += 4.0 => 6.0
162 - 4.0 = -2.0
172 -= 4.0 => -2.0
182 * 4.0 = 8.0
192 *= 4.0 => 8.0
202 / 4.0 = 0.5
212 /= 4.0 => 0.5
222 ** 4.0 = 16.0
232 **= 4.0 => 16.0
242 % 4.0 = 2.0
252 %= 4.0 => 2.0
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000262 + 2 = 4
272 += 2 => 4
282 - 2 = 0
292 -= 2 => 0
302 * 2 = 4
312 *= 2 => 4
322 / 2 = 1
332 /= 2 => 1
342 ** 2 = 4
352 **= 2 => 4
362 % 2 = 0
372 %= 2 => 0
Neil Schemenauer38796d02001-01-03 01:52:11 +0000382 + (2+0j) = (4+0j)
392 += (2+0j) => (4+0j)
402 - (2+0j) = 0j
412 -= (2+0j) => 0j
422 * (2+0j) = (4+0j)
432 *= (2+0j) => (4+0j)
442 / (2+0j) = (1+0j)
452 /= (2+0j) => (1+0j)
462 ** (2+0j) = (4+0j)
472 **= (2+0j) => (4+0j)
482 % (2+0j) = 0j
492 %= (2+0j) => 0j
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000502 + [1] ... exceptions.TypeError
512 += [1] ... exceptions.TypeError
522 - [1] ... exceptions.TypeError
532 -= [1] ... exceptions.TypeError
542 * [1] = [1, 1]
Neil Schemenauer623116a2001-01-04 01:36:25 +0000552 *= [1] => [1, 1]
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000562 / [1] ... exceptions.TypeError
572 /= [1] ... exceptions.TypeError
582 ** [1] ... exceptions.TypeError
592 **= [1] ... exceptions.TypeError
602 % [1] ... exceptions.TypeError
612 %= [1] ... exceptions.TypeError
622 + (2,) ... exceptions.TypeError
632 += (2,) ... exceptions.TypeError
642 - (2,) ... exceptions.TypeError
652 -= (2,) ... exceptions.TypeError
662 * (2,) = (2, 2)
Neil Schemenauer623116a2001-01-04 01:36:25 +0000672 *= (2,) => (2, 2)
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000682 / (2,) ... exceptions.TypeError
692 /= (2,) ... exceptions.TypeError
702 ** (2,) ... exceptions.TypeError
712 **= (2,) ... exceptions.TypeError
722 % (2,) ... exceptions.TypeError
732 %= (2,) ... exceptions.TypeError
742 + None ... exceptions.TypeError
752 += None ... exceptions.TypeError
762 - None ... exceptions.TypeError
772 -= None ... exceptions.TypeError
782 * None ... exceptions.TypeError
792 *= None ... exceptions.TypeError
802 / None ... exceptions.TypeError
812 /= None ... exceptions.TypeError
822 ** None ... exceptions.TypeError
832 **= None ... exceptions.TypeError
842 % None ... exceptions.TypeError
852 %= None ... exceptions.TypeError
862 + <MethodNumber 1> = 3
872 += <MethodNumber 1> => 3
882 - <MethodNumber 1> = 1
892 -= <MethodNumber 1> => 1
902 * <MethodNumber 1> = 2
912 *= <MethodNumber 1> => 2
922 / <MethodNumber 1> = 2
932 /= <MethodNumber 1> => 2
942 ** <MethodNumber 1> = 2
952 **= <MethodNumber 1> => 2
962 % <MethodNumber 1> = 0
972 %= <MethodNumber 1> => 0
Neil Schemenauer38796d02001-01-03 01:52:11 +0000982 + <CoerceNumber 2> = 4
992 += <CoerceNumber 2> => 4
1002 - <CoerceNumber 2> = 0
1012 -= <CoerceNumber 2> => 0
1022 * <CoerceNumber 2> = 4
1032 *= <CoerceNumber 2> => 4
1042 / <CoerceNumber 2> = 1
1052 /= <CoerceNumber 2> => 1
1062 ** <CoerceNumber 2> = 4
1072 **= <CoerceNumber 2> => 4
1082 % <CoerceNumber 2> = 0
1092 %= <CoerceNumber 2> => 0
1104.0 + 2 = 6.0
1114.0 += 2 => 6.0
1124.0 - 2 = 2.0
1134.0 -= 2 => 2.0
1144.0 * 2 = 8.0
1154.0 *= 2 => 8.0
1164.0 / 2 = 2.0
1174.0 /= 2 => 2.0
1184.0 ** 2 = 16.0
1194.0 **= 2 => 16.0
1204.0 % 2 = 0.0
1214.0 %= 2 => 0.0
1224.0 + 4.0 = 8.0
1234.0 += 4.0 => 8.0
1244.0 - 4.0 = 0.0
1254.0 -= 4.0 => 0.0
1264.0 * 4.0 = 16.0
1274.0 *= 4.0 => 16.0
1284.0 / 4.0 = 1.0
1294.0 /= 4.0 => 1.0
1304.0 ** 4.0 = 256.0
1314.0 **= 4.0 => 256.0
1324.0 % 4.0 = 0.0
1334.0 %= 4.0 => 0.0
1344.0 + 2 = 6.0
1354.0 += 2 => 6.0
1364.0 - 2 = 2.0
1374.0 -= 2 => 2.0
1384.0 * 2 = 8.0
1394.0 *= 2 => 8.0
1404.0 / 2 = 2.0
1414.0 /= 2 => 2.0
1424.0 ** 2 = 16.0
1434.0 **= 2 => 16.0
1444.0 % 2 = 0.0
1454.0 %= 2 => 0.0
1464.0 + (2+0j) = (6+0j)
1474.0 += (2+0j) => (6+0j)
1484.0 - (2+0j) = (2+0j)
1494.0 -= (2+0j) => (2+0j)
1504.0 * (2+0j) = (8+0j)
1514.0 *= (2+0j) => (8+0j)
1524.0 / (2+0j) = (2+0j)
1534.0 /= (2+0j) => (2+0j)
1544.0 ** (2+0j) = (16+0j)
1554.0 **= (2+0j) => (16+0j)
1564.0 % (2+0j) = 0j
1574.0 %= (2+0j) => 0j
1584.0 + [1] ... exceptions.TypeError
1594.0 += [1] ... exceptions.TypeError
1604.0 - [1] ... exceptions.TypeError
1614.0 -= [1] ... exceptions.TypeError
1624.0 * [1] ... exceptions.TypeError
1634.0 *= [1] ... exceptions.TypeError
1644.0 / [1] ... exceptions.TypeError
1654.0 /= [1] ... exceptions.TypeError
1664.0 ** [1] ... exceptions.TypeError
1674.0 **= [1] ... exceptions.TypeError
1684.0 % [1] ... exceptions.TypeError
1694.0 %= [1] ... exceptions.TypeError
1704.0 + (2,) ... exceptions.TypeError
1714.0 += (2,) ... exceptions.TypeError
1724.0 - (2,) ... exceptions.TypeError
1734.0 -= (2,) ... exceptions.TypeError
1744.0 * (2,) ... exceptions.TypeError
1754.0 *= (2,) ... exceptions.TypeError
1764.0 / (2,) ... exceptions.TypeError
1774.0 /= (2,) ... exceptions.TypeError
1784.0 ** (2,) ... exceptions.TypeError
1794.0 **= (2,) ... exceptions.TypeError
1804.0 % (2,) ... exceptions.TypeError
1814.0 %= (2,) ... exceptions.TypeError
1824.0 + None ... exceptions.TypeError
1834.0 += None ... exceptions.TypeError
1844.0 - None ... exceptions.TypeError
1854.0 -= None ... exceptions.TypeError
1864.0 * None ... exceptions.TypeError
1874.0 *= None ... exceptions.TypeError
1884.0 / None ... exceptions.TypeError
1894.0 /= None ... exceptions.TypeError
1904.0 ** None ... exceptions.TypeError
1914.0 **= None ... exceptions.TypeError
1924.0 % None ... exceptions.TypeError
1934.0 %= None ... exceptions.TypeError
1944.0 + <MethodNumber 1> = 5.0
1954.0 += <MethodNumber 1> => 5.0
1964.0 - <MethodNumber 1> = 3.0
1974.0 -= <MethodNumber 1> => 3.0
1984.0 * <MethodNumber 1> = 4.0
1994.0 *= <MethodNumber 1> => 4.0
2004.0 / <MethodNumber 1> = 4.0
2014.0 /= <MethodNumber 1> => 4.0
2024.0 ** <MethodNumber 1> = 4.0
2034.0 **= <MethodNumber 1> => 4.0
2044.0 % <MethodNumber 1> = 0.0
2054.0 %= <MethodNumber 1> => 0.0
2064.0 + <CoerceNumber 2> = 6.0
2074.0 += <CoerceNumber 2> => 6.0
2084.0 - <CoerceNumber 2> = 2.0
2094.0 -= <CoerceNumber 2> => 2.0
2104.0 * <CoerceNumber 2> = 8.0
2114.0 *= <CoerceNumber 2> => 8.0
2124.0 / <CoerceNumber 2> = 2.0
2134.0 /= <CoerceNumber 2> => 2.0
2144.0 ** <CoerceNumber 2> = 16.0
2154.0 **= <CoerceNumber 2> => 16.0
2164.0 % <CoerceNumber 2> = 0.0
2174.0 %= <CoerceNumber 2> => 0.0
Neil Schemenauerfd288c72001-01-02 16:30:31 +00002182 + 2 = 4
2192 += 2 => 4
2202 - 2 = 0
2212 -= 2 => 0
2222 * 2 = 4
2232 *= 2 => 4
2242 / 2 = 1
2252 /= 2 => 1
2262 ** 2 = 4
2272 **= 2 => 4
2282 % 2 = 0
2292 %= 2 => 0
Neil Schemenauer38796d02001-01-03 01:52:11 +00002302 + 4.0 = 6.0
2312 += 4.0 => 6.0
2322 - 4.0 = -2.0
2332 -= 4.0 => -2.0
2342 * 4.0 = 8.0
2352 *= 4.0 => 8.0
2362 / 4.0 = 0.5
2372 /= 4.0 => 0.5
2382 ** 4.0 = 16.0
2392 **= 4.0 => 16.0
2402 % 4.0 = 2.0
2412 %= 4.0 => 2.0
Neil Schemenauerfd288c72001-01-02 16:30:31 +00002422 + 2 = 4
2432 += 2 => 4
2442 - 2 = 0
2452 -= 2 => 0
2462 * 2 = 4
2472 *= 2 => 4
2482 / 2 = 1
2492 /= 2 => 1
2502 ** 2 = 4
2512 **= 2 => 4
2522 % 2 = 0
2532 %= 2 => 0
Neil Schemenauer38796d02001-01-03 01:52:11 +00002542 + (2+0j) = (4+0j)
2552 += (2+0j) => (4+0j)
2562 - (2+0j) = 0j
2572 -= (2+0j) => 0j
2582 * (2+0j) = (4+0j)
2592 *= (2+0j) => (4+0j)
2602 / (2+0j) = (1+0j)
2612 /= (2+0j) => (1+0j)
2622 ** (2+0j) = (4+0j)
2632 **= (2+0j) => (4+0j)
2642 % (2+0j) = 0j
2652 %= (2+0j) => 0j
Neil Schemenauerfd288c72001-01-02 16:30:31 +00002662 + [1] ... exceptions.TypeError
2672 += [1] ... exceptions.TypeError
2682 - [1] ... exceptions.TypeError
2692 -= [1] ... exceptions.TypeError
2702 * [1] = [1, 1]
Neil Schemenauer623116a2001-01-04 01:36:25 +00002712 *= [1] => [1, 1]
Neil Schemenauerfd288c72001-01-02 16:30:31 +00002722 / [1] ... exceptions.TypeError
2732 /= [1] ... exceptions.TypeError
2742 ** [1] ... exceptions.TypeError
2752 **= [1] ... exceptions.TypeError
2762 % [1] ... exceptions.TypeError
2772 %= [1] ... exceptions.TypeError
2782 + (2,) ... exceptions.TypeError
2792 += (2,) ... exceptions.TypeError
2802 - (2,) ... exceptions.TypeError
2812 -= (2,) ... exceptions.TypeError
2822 * (2,) = (2, 2)
Neil Schemenauer623116a2001-01-04 01:36:25 +00002832 *= (2,) => (2, 2)
Neil Schemenauerfd288c72001-01-02 16:30:31 +00002842 / (2,) ... exceptions.TypeError
2852 /= (2,) ... exceptions.TypeError
2862 ** (2,) ... exceptions.TypeError
2872 **= (2,) ... exceptions.TypeError
2882 % (2,) ... exceptions.TypeError
2892 %= (2,) ... exceptions.TypeError
2902 + None ... exceptions.TypeError
2912 += None ... exceptions.TypeError
2922 - None ... exceptions.TypeError
2932 -= None ... exceptions.TypeError
2942 * None ... exceptions.TypeError
2952 *= None ... exceptions.TypeError
2962 / None ... exceptions.TypeError
2972 /= None ... exceptions.TypeError
2982 ** None ... exceptions.TypeError
2992 **= None ... exceptions.TypeError
3002 % None ... exceptions.TypeError
3012 %= None ... exceptions.TypeError
3022 + <MethodNumber 1> = 3
3032 += <MethodNumber 1> => 3
3042 - <MethodNumber 1> = 1
3052 -= <MethodNumber 1> => 1
3062 * <MethodNumber 1> = 2
3072 *= <MethodNumber 1> => 2
3082 / <MethodNumber 1> = 2
3092 /= <MethodNumber 1> => 2
3102 ** <MethodNumber 1> = 2
3112 **= <MethodNumber 1> => 2
3122 % <MethodNumber 1> = 0
3132 %= <MethodNumber 1> => 0
Neil Schemenauer38796d02001-01-03 01:52:11 +00003142 + <CoerceNumber 2> = 4
3152 += <CoerceNumber 2> => 4
3162 - <CoerceNumber 2> = 0
3172 -= <CoerceNumber 2> => 0
3182 * <CoerceNumber 2> = 4
3192 *= <CoerceNumber 2> => 4
3202 / <CoerceNumber 2> = 1
3212 /= <CoerceNumber 2> => 1
3222 ** <CoerceNumber 2> = 4
3232 **= <CoerceNumber 2> => 4
3242 % <CoerceNumber 2> = 0
3252 %= <CoerceNumber 2> => 0
326(2+0j) + 2 = (4+0j)
327(2+0j) += 2 => (4+0j)
328(2+0j) - 2 = 0j
329(2+0j) -= 2 => 0j
330(2+0j) * 2 = (4+0j)
331(2+0j) *= 2 => (4+0j)
332(2+0j) / 2 = (1+0j)
333(2+0j) /= 2 => (1+0j)
334(2+0j) ** 2 = (4+0j)
335(2+0j) **= 2 => (4+0j)
336(2+0j) % 2 = 0j
337(2+0j) %= 2 => 0j
338(2+0j) + 4.0 = (6+0j)
339(2+0j) += 4.0 => (6+0j)
340(2+0j) - 4.0 = (-2+0j)
341(2+0j) -= 4.0 => (-2+0j)
342(2+0j) * 4.0 = (8+0j)
343(2+0j) *= 4.0 => (8+0j)
344(2+0j) / 4.0 = (0.5+0j)
345(2+0j) /= 4.0 => (0.5+0j)
346(2+0j) ** 4.0 = (16+0j)
347(2+0j) **= 4.0 => (16+0j)
348(2+0j) % 4.0 = (2+0j)
349(2+0j) %= 4.0 => (2+0j)
350(2+0j) + 2 = (4+0j)
351(2+0j) += 2 => (4+0j)
352(2+0j) - 2 = 0j
353(2+0j) -= 2 => 0j
354(2+0j) * 2 = (4+0j)
355(2+0j) *= 2 => (4+0j)
356(2+0j) / 2 = (1+0j)
357(2+0j) /= 2 => (1+0j)
358(2+0j) ** 2 = (4+0j)
359(2+0j) **= 2 => (4+0j)
360(2+0j) % 2 = 0j
361(2+0j) %= 2 => 0j
362(2+0j) + (2+0j) = (4+0j)
363(2+0j) += (2+0j) => (4+0j)
364(2+0j) - (2+0j) = 0j
365(2+0j) -= (2+0j) => 0j
366(2+0j) * (2+0j) = (4+0j)
367(2+0j) *= (2+0j) => (4+0j)
368(2+0j) / (2+0j) = (1+0j)
369(2+0j) /= (2+0j) => (1+0j)
370(2+0j) ** (2+0j) = (4+0j)
371(2+0j) **= (2+0j) => (4+0j)
372(2+0j) % (2+0j) = 0j
373(2+0j) %= (2+0j) => 0j
374(2+0j) + [1] ... exceptions.TypeError
375(2+0j) += [1] ... exceptions.TypeError
376(2+0j) - [1] ... exceptions.TypeError
377(2+0j) -= [1] ... exceptions.TypeError
378(2+0j) * [1] ... exceptions.TypeError
379(2+0j) *= [1] ... exceptions.TypeError
380(2+0j) / [1] ... exceptions.TypeError
381(2+0j) /= [1] ... exceptions.TypeError
382(2+0j) ** [1] ... exceptions.TypeError
383(2+0j) **= [1] ... exceptions.TypeError
384(2+0j) % [1] ... exceptions.TypeError
385(2+0j) %= [1] ... exceptions.TypeError
386(2+0j) + (2,) ... exceptions.TypeError
387(2+0j) += (2,) ... exceptions.TypeError
388(2+0j) - (2,) ... exceptions.TypeError
389(2+0j) -= (2,) ... exceptions.TypeError
390(2+0j) * (2,) ... exceptions.TypeError
391(2+0j) *= (2,) ... exceptions.TypeError
392(2+0j) / (2,) ... exceptions.TypeError
393(2+0j) /= (2,) ... exceptions.TypeError
394(2+0j) ** (2,) ... exceptions.TypeError
395(2+0j) **= (2,) ... exceptions.TypeError
396(2+0j) % (2,) ... exceptions.TypeError
397(2+0j) %= (2,) ... exceptions.TypeError
398(2+0j) + None ... exceptions.TypeError
399(2+0j) += None ... exceptions.TypeError
400(2+0j) - None ... exceptions.TypeError
401(2+0j) -= None ... exceptions.TypeError
402(2+0j) * None ... exceptions.TypeError
403(2+0j) *= None ... exceptions.TypeError
404(2+0j) / None ... exceptions.TypeError
405(2+0j) /= None ... exceptions.TypeError
406(2+0j) ** None ... exceptions.TypeError
407(2+0j) **= None ... exceptions.TypeError
408(2+0j) % None ... exceptions.TypeError
409(2+0j) %= None ... exceptions.TypeError
410(2+0j) + <MethodNumber 1> = (3+0j)
411(2+0j) += <MethodNumber 1> => (3+0j)
412(2+0j) - <MethodNumber 1> = (1+0j)
413(2+0j) -= <MethodNumber 1> => (1+0j)
414(2+0j) * <MethodNumber 1> = (2+0j)
415(2+0j) *= <MethodNumber 1> => (2+0j)
416(2+0j) / <MethodNumber 1> = (2+0j)
417(2+0j) /= <MethodNumber 1> => (2+0j)
418(2+0j) ** <MethodNumber 1> = (2+0j)
419(2+0j) **= <MethodNumber 1> => (2+0j)
420(2+0j) % <MethodNumber 1> = 0j
421(2+0j) %= <MethodNumber 1> => 0j
422(2+0j) + <CoerceNumber 2> = (4+0j)
423(2+0j) += <CoerceNumber 2> => (4+0j)
424(2+0j) - <CoerceNumber 2> = 0j
425(2+0j) -= <CoerceNumber 2> => 0j
426(2+0j) * <CoerceNumber 2> = (4+0j)
427(2+0j) *= <CoerceNumber 2> => (4+0j)
428(2+0j) / <CoerceNumber 2> = (1+0j)
429(2+0j) /= <CoerceNumber 2> => (1+0j)
430(2+0j) ** <CoerceNumber 2> = (4+0j)
431(2+0j) **= <CoerceNumber 2> => (4+0j)
432(2+0j) % <CoerceNumber 2> = 0j
433(2+0j) %= <CoerceNumber 2> => 0j
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000434[1] + 2 ... exceptions.TypeError
435[1] += 2 ... exceptions.TypeError
436[1] - 2 ... exceptions.TypeError
437[1] -= 2 ... exceptions.TypeError
438[1] * 2 = [1, 1]
439[1] *= 2 => [1, 1]
440[1] / 2 ... exceptions.TypeError
441[1] /= 2 ... exceptions.TypeError
442[1] ** 2 ... exceptions.TypeError
443[1] **= 2 ... exceptions.TypeError
444[1] % 2 ... exceptions.TypeError
445[1] %= 2 ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000446[1] + 4.0 ... exceptions.TypeError
447[1] += 4.0 ... exceptions.TypeError
448[1] - 4.0 ... exceptions.TypeError
449[1] -= 4.0 ... exceptions.TypeError
450[1] * 4.0 ... exceptions.TypeError
451[1] *= 4.0 ... exceptions.TypeError
452[1] / 4.0 ... exceptions.TypeError
453[1] /= 4.0 ... exceptions.TypeError
454[1] ** 4.0 ... exceptions.TypeError
455[1] **= 4.0 ... exceptions.TypeError
456[1] % 4.0 ... exceptions.TypeError
457[1] %= 4.0 ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000458[1] + 2 ... exceptions.TypeError
459[1] += 2 ... exceptions.TypeError
460[1] - 2 ... exceptions.TypeError
461[1] -= 2 ... exceptions.TypeError
462[1] * 2 = [1, 1]
463[1] *= 2 => [1, 1]
464[1] / 2 ... exceptions.TypeError
465[1] /= 2 ... exceptions.TypeError
466[1] ** 2 ... exceptions.TypeError
467[1] **= 2 ... exceptions.TypeError
468[1] % 2 ... exceptions.TypeError
469[1] %= 2 ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000470[1] + (2+0j) ... exceptions.TypeError
471[1] += (2+0j) ... exceptions.TypeError
472[1] - (2+0j) ... exceptions.TypeError
473[1] -= (2+0j) ... exceptions.TypeError
474[1] * (2+0j) ... exceptions.TypeError
475[1] *= (2+0j) ... exceptions.TypeError
476[1] / (2+0j) ... exceptions.TypeError
477[1] /= (2+0j) ... exceptions.TypeError
478[1] ** (2+0j) ... exceptions.TypeError
479[1] **= (2+0j) ... exceptions.TypeError
480[1] % (2+0j) ... exceptions.TypeError
481[1] %= (2+0j) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000482[1] + [1] = [1, 1]
483[1] += [1] => [1, 1]
484[1] - [1] ... exceptions.TypeError
485[1] -= [1] ... exceptions.TypeError
486[1] * [1] ... exceptions.TypeError
487[1] *= [1] ... exceptions.TypeError
488[1] / [1] ... exceptions.TypeError
489[1] /= [1] ... exceptions.TypeError
490[1] ** [1] ... exceptions.TypeError
491[1] **= [1] ... exceptions.TypeError
492[1] % [1] ... exceptions.TypeError
493[1] %= [1] ... exceptions.TypeError
494[1] + (2,) ... exceptions.TypeError
495[1] += (2,) => [1, 2]
496[1] - (2,) ... exceptions.TypeError
497[1] -= (2,) ... exceptions.TypeError
498[1] * (2,) ... exceptions.TypeError
499[1] *= (2,) ... exceptions.TypeError
500[1] / (2,) ... exceptions.TypeError
501[1] /= (2,) ... exceptions.TypeError
502[1] ** (2,) ... exceptions.TypeError
503[1] **= (2,) ... exceptions.TypeError
504[1] % (2,) ... exceptions.TypeError
505[1] %= (2,) ... exceptions.TypeError
506[1] + None ... exceptions.TypeError
507[1] += None ... exceptions.TypeError
508[1] - None ... exceptions.TypeError
509[1] -= None ... exceptions.TypeError
510[1] * None ... exceptions.TypeError
511[1] *= None ... exceptions.TypeError
512[1] / None ... exceptions.TypeError
513[1] /= None ... exceptions.TypeError
514[1] ** None ... exceptions.TypeError
515[1] **= None ... exceptions.TypeError
516[1] % None ... exceptions.TypeError
517[1] %= None ... exceptions.TypeError
518[1] + <MethodNumber 1> ... exceptions.TypeError
Tim Peters6912d4d2001-05-05 03:56:37 +0000519[1] += <MethodNumber 1> ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000520[1] - <MethodNumber 1> ... exceptions.TypeError
521[1] -= <MethodNumber 1> ... exceptions.TypeError
522[1] * <MethodNumber 1> = [1]
523[1] *= <MethodNumber 1> ... exceptions.TypeError
524[1] / <MethodNumber 1> ... exceptions.TypeError
525[1] /= <MethodNumber 1> ... exceptions.TypeError
526[1] ** <MethodNumber 1> ... exceptions.TypeError
527[1] **= <MethodNumber 1> ... exceptions.TypeError
528[1] % <MethodNumber 1> ... exceptions.TypeError
529[1] %= <MethodNumber 1> ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000530[1] + <CoerceNumber 2> ... exceptions.TypeError
Tim Peters6912d4d2001-05-05 03:56:37 +0000531[1] += <CoerceNumber 2> ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000532[1] - <CoerceNumber 2> ... exceptions.TypeError
533[1] -= <CoerceNumber 2> ... exceptions.TypeError
534[1] * <CoerceNumber 2> = [1, 1]
535[1] *= <CoerceNumber 2> ... exceptions.TypeError
536[1] / <CoerceNumber 2> ... exceptions.TypeError
537[1] /= <CoerceNumber 2> ... exceptions.TypeError
538[1] ** <CoerceNumber 2> ... exceptions.TypeError
539[1] **= <CoerceNumber 2> ... exceptions.TypeError
540[1] % <CoerceNumber 2> ... exceptions.TypeError
541[1] %= <CoerceNumber 2> ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000542(2,) + 2 ... exceptions.TypeError
543(2,) += 2 ... exceptions.TypeError
544(2,) - 2 ... exceptions.TypeError
545(2,) -= 2 ... exceptions.TypeError
546(2,) * 2 = (2, 2)
547(2,) *= 2 => (2, 2)
548(2,) / 2 ... exceptions.TypeError
549(2,) /= 2 ... exceptions.TypeError
550(2,) ** 2 ... exceptions.TypeError
551(2,) **= 2 ... exceptions.TypeError
552(2,) % 2 ... exceptions.TypeError
553(2,) %= 2 ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000554(2,) + 4.0 ... exceptions.TypeError
555(2,) += 4.0 ... exceptions.TypeError
556(2,) - 4.0 ... exceptions.TypeError
557(2,) -= 4.0 ... exceptions.TypeError
558(2,) * 4.0 ... exceptions.TypeError
559(2,) *= 4.0 ... exceptions.TypeError
560(2,) / 4.0 ... exceptions.TypeError
561(2,) /= 4.0 ... exceptions.TypeError
562(2,) ** 4.0 ... exceptions.TypeError
563(2,) **= 4.0 ... exceptions.TypeError
564(2,) % 4.0 ... exceptions.TypeError
565(2,) %= 4.0 ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000566(2,) + 2 ... exceptions.TypeError
567(2,) += 2 ... exceptions.TypeError
568(2,) - 2 ... exceptions.TypeError
569(2,) -= 2 ... exceptions.TypeError
570(2,) * 2 = (2, 2)
571(2,) *= 2 => (2, 2)
572(2,) / 2 ... exceptions.TypeError
573(2,) /= 2 ... exceptions.TypeError
574(2,) ** 2 ... exceptions.TypeError
575(2,) **= 2 ... exceptions.TypeError
576(2,) % 2 ... exceptions.TypeError
577(2,) %= 2 ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000578(2,) + (2+0j) ... exceptions.TypeError
579(2,) += (2+0j) ... exceptions.TypeError
580(2,) - (2+0j) ... exceptions.TypeError
581(2,) -= (2+0j) ... exceptions.TypeError
582(2,) * (2+0j) ... exceptions.TypeError
583(2,) *= (2+0j) ... exceptions.TypeError
584(2,) / (2+0j) ... exceptions.TypeError
585(2,) /= (2+0j) ... exceptions.TypeError
586(2,) ** (2+0j) ... exceptions.TypeError
587(2,) **= (2+0j) ... exceptions.TypeError
588(2,) % (2+0j) ... exceptions.TypeError
589(2,) %= (2+0j) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000590(2,) + [1] ... exceptions.TypeError
591(2,) += [1] ... exceptions.TypeError
592(2,) - [1] ... exceptions.TypeError
593(2,) -= [1] ... exceptions.TypeError
594(2,) * [1] ... exceptions.TypeError
595(2,) *= [1] ... exceptions.TypeError
596(2,) / [1] ... exceptions.TypeError
597(2,) /= [1] ... exceptions.TypeError
598(2,) ** [1] ... exceptions.TypeError
599(2,) **= [1] ... exceptions.TypeError
600(2,) % [1] ... exceptions.TypeError
601(2,) %= [1] ... exceptions.TypeError
602(2,) + (2,) = (2, 2)
603(2,) += (2,) => (2, 2)
604(2,) - (2,) ... exceptions.TypeError
605(2,) -= (2,) ... exceptions.TypeError
606(2,) * (2,) ... exceptions.TypeError
607(2,) *= (2,) ... exceptions.TypeError
608(2,) / (2,) ... exceptions.TypeError
609(2,) /= (2,) ... exceptions.TypeError
610(2,) ** (2,) ... exceptions.TypeError
611(2,) **= (2,) ... exceptions.TypeError
612(2,) % (2,) ... exceptions.TypeError
613(2,) %= (2,) ... exceptions.TypeError
614(2,) + None ... exceptions.TypeError
615(2,) += None ... exceptions.TypeError
616(2,) - None ... exceptions.TypeError
617(2,) -= None ... exceptions.TypeError
618(2,) * None ... exceptions.TypeError
619(2,) *= None ... exceptions.TypeError
620(2,) / None ... exceptions.TypeError
621(2,) /= None ... exceptions.TypeError
622(2,) ** None ... exceptions.TypeError
623(2,) **= None ... exceptions.TypeError
624(2,) % None ... exceptions.TypeError
625(2,) %= None ... exceptions.TypeError
626(2,) + <MethodNumber 1> ... exceptions.TypeError
627(2,) += <MethodNumber 1> ... exceptions.TypeError
628(2,) - <MethodNumber 1> ... exceptions.TypeError
629(2,) -= <MethodNumber 1> ... exceptions.TypeError
630(2,) * <MethodNumber 1> = (2,)
631(2,) *= <MethodNumber 1> => (2,)
632(2,) / <MethodNumber 1> ... exceptions.TypeError
633(2,) /= <MethodNumber 1> ... exceptions.TypeError
634(2,) ** <MethodNumber 1> ... exceptions.TypeError
635(2,) **= <MethodNumber 1> ... exceptions.TypeError
636(2,) % <MethodNumber 1> ... exceptions.TypeError
637(2,) %= <MethodNumber 1> ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000638(2,) + <CoerceNumber 2> ... exceptions.TypeError
639(2,) += <CoerceNumber 2> ... exceptions.TypeError
640(2,) - <CoerceNumber 2> ... exceptions.TypeError
641(2,) -= <CoerceNumber 2> ... exceptions.TypeError
642(2,) * <CoerceNumber 2> = (2, 2)
643(2,) *= <CoerceNumber 2> => (2, 2)
644(2,) / <CoerceNumber 2> ... exceptions.TypeError
645(2,) /= <CoerceNumber 2> ... exceptions.TypeError
646(2,) ** <CoerceNumber 2> ... exceptions.TypeError
647(2,) **= <CoerceNumber 2> ... exceptions.TypeError
648(2,) % <CoerceNumber 2> ... exceptions.TypeError
649(2,) %= <CoerceNumber 2> ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000650None + 2 ... exceptions.TypeError
651None += 2 ... exceptions.TypeError
652None - 2 ... exceptions.TypeError
653None -= 2 ... exceptions.TypeError
654None * 2 ... exceptions.TypeError
655None *= 2 ... exceptions.TypeError
656None / 2 ... exceptions.TypeError
657None /= 2 ... exceptions.TypeError
658None ** 2 ... exceptions.TypeError
659None **= 2 ... exceptions.TypeError
660None % 2 ... exceptions.TypeError
661None %= 2 ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000662None + 4.0 ... exceptions.TypeError
663None += 4.0 ... exceptions.TypeError
664None - 4.0 ... exceptions.TypeError
665None -= 4.0 ... exceptions.TypeError
666None * 4.0 ... exceptions.TypeError
667None *= 4.0 ... exceptions.TypeError
668None / 4.0 ... exceptions.TypeError
669None /= 4.0 ... exceptions.TypeError
670None ** 4.0 ... exceptions.TypeError
671None **= 4.0 ... exceptions.TypeError
672None % 4.0 ... exceptions.TypeError
673None %= 4.0 ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000674None + 2 ... exceptions.TypeError
675None += 2 ... exceptions.TypeError
676None - 2 ... exceptions.TypeError
677None -= 2 ... exceptions.TypeError
678None * 2 ... exceptions.TypeError
679None *= 2 ... exceptions.TypeError
680None / 2 ... exceptions.TypeError
681None /= 2 ... exceptions.TypeError
682None ** 2 ... exceptions.TypeError
683None **= 2 ... exceptions.TypeError
684None % 2 ... exceptions.TypeError
685None %= 2 ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000686None + (2+0j) ... exceptions.TypeError
687None += (2+0j) ... exceptions.TypeError
688None - (2+0j) ... exceptions.TypeError
689None -= (2+0j) ... exceptions.TypeError
690None * (2+0j) ... exceptions.TypeError
691None *= (2+0j) ... exceptions.TypeError
692None / (2+0j) ... exceptions.TypeError
693None /= (2+0j) ... exceptions.TypeError
694None ** (2+0j) ... exceptions.TypeError
695None **= (2+0j) ... exceptions.TypeError
696None % (2+0j) ... exceptions.TypeError
697None %= (2+0j) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000698None + [1] ... exceptions.TypeError
699None += [1] ... exceptions.TypeError
700None - [1] ... exceptions.TypeError
701None -= [1] ... exceptions.TypeError
702None * [1] ... exceptions.TypeError
703None *= [1] ... exceptions.TypeError
704None / [1] ... exceptions.TypeError
705None /= [1] ... exceptions.TypeError
706None ** [1] ... exceptions.TypeError
707None **= [1] ... exceptions.TypeError
708None % [1] ... exceptions.TypeError
709None %= [1] ... exceptions.TypeError
710None + (2,) ... exceptions.TypeError
711None += (2,) ... exceptions.TypeError
712None - (2,) ... exceptions.TypeError
713None -= (2,) ... exceptions.TypeError
714None * (2,) ... exceptions.TypeError
715None *= (2,) ... exceptions.TypeError
716None / (2,) ... exceptions.TypeError
717None /= (2,) ... exceptions.TypeError
718None ** (2,) ... exceptions.TypeError
719None **= (2,) ... exceptions.TypeError
720None % (2,) ... exceptions.TypeError
721None %= (2,) ... exceptions.TypeError
722None + None ... exceptions.TypeError
723None += None ... exceptions.TypeError
724None - None ... exceptions.TypeError
725None -= None ... exceptions.TypeError
726None * None ... exceptions.TypeError
727None *= None ... exceptions.TypeError
728None / None ... exceptions.TypeError
729None /= None ... exceptions.TypeError
730None ** None ... exceptions.TypeError
731None **= None ... exceptions.TypeError
732None % None ... exceptions.TypeError
733None %= None ... exceptions.TypeError
734None + <MethodNumber 1> ... exceptions.TypeError
735None += <MethodNumber 1> ... exceptions.TypeError
736None - <MethodNumber 1> ... exceptions.TypeError
737None -= <MethodNumber 1> ... exceptions.TypeError
738None * <MethodNumber 1> ... exceptions.TypeError
739None *= <MethodNumber 1> ... exceptions.TypeError
740None / <MethodNumber 1> ... exceptions.TypeError
741None /= <MethodNumber 1> ... exceptions.TypeError
742None ** <MethodNumber 1> ... exceptions.TypeError
743None **= <MethodNumber 1> ... exceptions.TypeError
744None % <MethodNumber 1> ... exceptions.TypeError
745None %= <MethodNumber 1> ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000746None + <CoerceNumber 2> ... exceptions.TypeError
747None += <CoerceNumber 2> ... exceptions.TypeError
748None - <CoerceNumber 2> ... exceptions.TypeError
749None -= <CoerceNumber 2> ... exceptions.TypeError
750None * <CoerceNumber 2> ... exceptions.TypeError
751None *= <CoerceNumber 2> ... exceptions.TypeError
752None / <CoerceNumber 2> ... exceptions.TypeError
753None /= <CoerceNumber 2> ... exceptions.TypeError
754None ** <CoerceNumber 2> ... exceptions.TypeError
755None **= <CoerceNumber 2> ... exceptions.TypeError
756None % <CoerceNumber 2> ... exceptions.TypeError
757None %= <CoerceNumber 2> ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000758<MethodNumber 1> + 2 = 3
759<MethodNumber 1> += 2 => 3
760<MethodNumber 1> - 2 = -1
761<MethodNumber 1> -= 2 => -1
762<MethodNumber 1> * 2 = 2
763<MethodNumber 1> *= 2 => 2
764<MethodNumber 1> / 2 = 0
765<MethodNumber 1> /= 2 => 0
766<MethodNumber 1> ** 2 = 1
767<MethodNumber 1> **= 2 => 1
768<MethodNumber 1> % 2 = 1
769<MethodNumber 1> %= 2 => 1
Neil Schemenauer38796d02001-01-03 01:52:11 +0000770<MethodNumber 1> + 4.0 = 5.0
771<MethodNumber 1> += 4.0 => 5.0
772<MethodNumber 1> - 4.0 = -3.0
773<MethodNumber 1> -= 4.0 => -3.0
774<MethodNumber 1> * 4.0 = 4.0
775<MethodNumber 1> *= 4.0 => 4.0
776<MethodNumber 1> / 4.0 = 0.25
777<MethodNumber 1> /= 4.0 => 0.25
778<MethodNumber 1> ** 4.0 = 1.0
779<MethodNumber 1> **= 4.0 => 1.0
780<MethodNumber 1> % 4.0 = 1.0
781<MethodNumber 1> %= 4.0 => 1.0
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000782<MethodNumber 1> + 2 = 3
783<MethodNumber 1> += 2 => 3
784<MethodNumber 1> - 2 = -1
785<MethodNumber 1> -= 2 => -1
786<MethodNumber 1> * 2 = 2
787<MethodNumber 1> *= 2 => 2
788<MethodNumber 1> / 2 = 0
789<MethodNumber 1> /= 2 => 0
790<MethodNumber 1> ** 2 = 1
791<MethodNumber 1> **= 2 => 1
792<MethodNumber 1> % 2 = 1
793<MethodNumber 1> %= 2 => 1
Neil Schemenauer38796d02001-01-03 01:52:11 +0000794<MethodNumber 1> + (2+0j) = (3+0j)
795<MethodNumber 1> += (2+0j) => (3+0j)
796<MethodNumber 1> - (2+0j) = (-1+0j)
797<MethodNumber 1> -= (2+0j) => (-1+0j)
798<MethodNumber 1> * (2+0j) = (2+0j)
799<MethodNumber 1> *= (2+0j) => (2+0j)
800<MethodNumber 1> / (2+0j) = (0.5+0j)
801<MethodNumber 1> /= (2+0j) => (0.5+0j)
802<MethodNumber 1> ** (2+0j) = (1+0j)
803<MethodNumber 1> **= (2+0j) => (1+0j)
804<MethodNumber 1> % (2+0j) = (1+0j)
805<MethodNumber 1> %= (2+0j) => (1+0j)
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000806<MethodNumber 1> + [1] ... exceptions.TypeError
807<MethodNumber 1> += [1] ... exceptions.TypeError
808<MethodNumber 1> - [1] ... exceptions.TypeError
809<MethodNumber 1> -= [1] ... exceptions.TypeError
810<MethodNumber 1> * [1] = [1]
811<MethodNumber 1> *= [1] => [1]
812<MethodNumber 1> / [1] ... exceptions.TypeError
813<MethodNumber 1> /= [1] ... exceptions.TypeError
814<MethodNumber 1> ** [1] ... exceptions.TypeError
815<MethodNumber 1> **= [1] ... exceptions.TypeError
816<MethodNumber 1> % [1] ... exceptions.TypeError
817<MethodNumber 1> %= [1] ... exceptions.TypeError
818<MethodNumber 1> + (2,) ... exceptions.TypeError
819<MethodNumber 1> += (2,) ... exceptions.TypeError
820<MethodNumber 1> - (2,) ... exceptions.TypeError
821<MethodNumber 1> -= (2,) ... exceptions.TypeError
822<MethodNumber 1> * (2,) = (2,)
823<MethodNumber 1> *= (2,) => (2,)
824<MethodNumber 1> / (2,) ... exceptions.TypeError
825<MethodNumber 1> /= (2,) ... exceptions.TypeError
826<MethodNumber 1> ** (2,) ... exceptions.TypeError
827<MethodNumber 1> **= (2,) ... exceptions.TypeError
828<MethodNumber 1> % (2,) ... exceptions.TypeError
829<MethodNumber 1> %= (2,) ... exceptions.TypeError
830<MethodNumber 1> + None ... exceptions.TypeError
831<MethodNumber 1> += None ... exceptions.TypeError
832<MethodNumber 1> - None ... exceptions.TypeError
833<MethodNumber 1> -= None ... exceptions.TypeError
834<MethodNumber 1> * None ... exceptions.TypeError
835<MethodNumber 1> *= None ... exceptions.TypeError
836<MethodNumber 1> / None ... exceptions.TypeError
837<MethodNumber 1> /= None ... exceptions.TypeError
838<MethodNumber 1> ** None ... exceptions.TypeError
839<MethodNumber 1> **= None ... exceptions.TypeError
840<MethodNumber 1> % None ... exceptions.TypeError
841<MethodNumber 1> %= None ... exceptions.TypeError
842<MethodNumber 1> + <MethodNumber 1> = 2
843<MethodNumber 1> += <MethodNumber 1> => 2
844<MethodNumber 1> - <MethodNumber 1> = 0
845<MethodNumber 1> -= <MethodNumber 1> => 0
846<MethodNumber 1> * <MethodNumber 1> = 1
847<MethodNumber 1> *= <MethodNumber 1> => 1
848<MethodNumber 1> / <MethodNumber 1> = 1
849<MethodNumber 1> /= <MethodNumber 1> => 1
850<MethodNumber 1> ** <MethodNumber 1> = 1
851<MethodNumber 1> **= <MethodNumber 1> => 1
852<MethodNumber 1> % <MethodNumber 1> = 0
853<MethodNumber 1> %= <MethodNumber 1> => 0
Neil Schemenauer38796d02001-01-03 01:52:11 +0000854<MethodNumber 1> + <CoerceNumber 2> = 3
855<MethodNumber 1> += <CoerceNumber 2> => 3
856<MethodNumber 1> - <CoerceNumber 2> = -1
857<MethodNumber 1> -= <CoerceNumber 2> => -1
858<MethodNumber 1> * <CoerceNumber 2> = 2
859<MethodNumber 1> *= <CoerceNumber 2> => 2
860<MethodNumber 1> / <CoerceNumber 2> = 0
861<MethodNumber 1> /= <CoerceNumber 2> => 0
862<MethodNumber 1> ** <CoerceNumber 2> = 1
863<MethodNumber 1> **= <CoerceNumber 2> => 1
864<MethodNumber 1> % <CoerceNumber 2> = 1
865<MethodNumber 1> %= <CoerceNumber 2> => 1
866<CoerceNumber 2> + 2 = 4
867<CoerceNumber 2> += 2 => 4
868<CoerceNumber 2> - 2 = 0
869<CoerceNumber 2> -= 2 => 0
870<CoerceNumber 2> * 2 = 4
871<CoerceNumber 2> *= 2 => 4
872<CoerceNumber 2> / 2 = 1
873<CoerceNumber 2> /= 2 => 1
874<CoerceNumber 2> ** 2 = 4
875<CoerceNumber 2> **= 2 => 4
876<CoerceNumber 2> % 2 = 0
877<CoerceNumber 2> %= 2 => 0
878<CoerceNumber 2> + 4.0 = 6.0
879<CoerceNumber 2> += 4.0 => 6.0
880<CoerceNumber 2> - 4.0 = -2.0
881<CoerceNumber 2> -= 4.0 => -2.0
882<CoerceNumber 2> * 4.0 = 8.0
883<CoerceNumber 2> *= 4.0 => 8.0
884<CoerceNumber 2> / 4.0 = 0.5
885<CoerceNumber 2> /= 4.0 => 0.5
886<CoerceNumber 2> ** 4.0 = 16.0
887<CoerceNumber 2> **= 4.0 => 16.0
888<CoerceNumber 2> % 4.0 = 2.0
889<CoerceNumber 2> %= 4.0 => 2.0
890<CoerceNumber 2> + 2 = 4
891<CoerceNumber 2> += 2 => 4
892<CoerceNumber 2> - 2 = 0
893<CoerceNumber 2> -= 2 => 0
894<CoerceNumber 2> * 2 = 4
895<CoerceNumber 2> *= 2 => 4
896<CoerceNumber 2> / 2 = 1
897<CoerceNumber 2> /= 2 => 1
898<CoerceNumber 2> ** 2 = 4
899<CoerceNumber 2> **= 2 => 4
900<CoerceNumber 2> % 2 = 0
901<CoerceNumber 2> %= 2 => 0
902<CoerceNumber 2> + (2+0j) = (4+0j)
903<CoerceNumber 2> += (2+0j) => (4+0j)
904<CoerceNumber 2> - (2+0j) = 0j
905<CoerceNumber 2> -= (2+0j) => 0j
906<CoerceNumber 2> * (2+0j) = (4+0j)
907<CoerceNumber 2> *= (2+0j) => (4+0j)
908<CoerceNumber 2> / (2+0j) = (1+0j)
909<CoerceNumber 2> /= (2+0j) => (1+0j)
910<CoerceNumber 2> ** (2+0j) = (4+0j)
911<CoerceNumber 2> **= (2+0j) => (4+0j)
912<CoerceNumber 2> % (2+0j) = 0j
913<CoerceNumber 2> %= (2+0j) => 0j
914<CoerceNumber 2> + [1] ... exceptions.TypeError
915<CoerceNumber 2> += [1] ... exceptions.TypeError
916<CoerceNumber 2> - [1] ... exceptions.TypeError
917<CoerceNumber 2> -= [1] ... exceptions.TypeError
918<CoerceNumber 2> * [1] = [1, 1]
919<CoerceNumber 2> *= [1] => [1, 1]
920<CoerceNumber 2> / [1] ... exceptions.TypeError
921<CoerceNumber 2> /= [1] ... exceptions.TypeError
922<CoerceNumber 2> ** [1] ... exceptions.TypeError
923<CoerceNumber 2> **= [1] ... exceptions.TypeError
924<CoerceNumber 2> % [1] ... exceptions.TypeError
925<CoerceNumber 2> %= [1] ... exceptions.TypeError
926<CoerceNumber 2> + (2,) ... exceptions.TypeError
927<CoerceNumber 2> += (2,) ... exceptions.TypeError
928<CoerceNumber 2> - (2,) ... exceptions.TypeError
929<CoerceNumber 2> -= (2,) ... exceptions.TypeError
930<CoerceNumber 2> * (2,) = (2, 2)
931<CoerceNumber 2> *= (2,) => (2, 2)
932<CoerceNumber 2> / (2,) ... exceptions.TypeError
933<CoerceNumber 2> /= (2,) ... exceptions.TypeError
934<CoerceNumber 2> ** (2,) ... exceptions.TypeError
935<CoerceNumber 2> **= (2,) ... exceptions.TypeError
936<CoerceNumber 2> % (2,) ... exceptions.TypeError
937<CoerceNumber 2> %= (2,) ... exceptions.TypeError
938<CoerceNumber 2> + None ... exceptions.TypeError
939<CoerceNumber 2> += None ... exceptions.TypeError
940<CoerceNumber 2> - None ... exceptions.TypeError
941<CoerceNumber 2> -= None ... exceptions.TypeError
942<CoerceNumber 2> * None ... exceptions.TypeError
943<CoerceNumber 2> *= None ... exceptions.TypeError
944<CoerceNumber 2> / None ... exceptions.TypeError
945<CoerceNumber 2> /= None ... exceptions.TypeError
946<CoerceNumber 2> ** None ... exceptions.TypeError
947<CoerceNumber 2> **= None ... exceptions.TypeError
948<CoerceNumber 2> % None ... exceptions.TypeError
949<CoerceNumber 2> %= None ... exceptions.TypeError
950<CoerceNumber 2> + <MethodNumber 1> = 3
951<CoerceNumber 2> += <MethodNumber 1> => 3
952<CoerceNumber 2> - <MethodNumber 1> = 1
953<CoerceNumber 2> -= <MethodNumber 1> => 1
954<CoerceNumber 2> * <MethodNumber 1> = 2
955<CoerceNumber 2> *= <MethodNumber 1> => 2
956<CoerceNumber 2> / <MethodNumber 1> = 2
957<CoerceNumber 2> /= <MethodNumber 1> => 2
958<CoerceNumber 2> ** <MethodNumber 1> = 2
959<CoerceNumber 2> **= <MethodNumber 1> => 2
960<CoerceNumber 2> % <MethodNumber 1> = 0
961<CoerceNumber 2> %= <MethodNumber 1> => 0
962<CoerceNumber 2> + <CoerceNumber 2> = 4
963<CoerceNumber 2> += <CoerceNumber 2> => 4
964<CoerceNumber 2> - <CoerceNumber 2> = 0
965<CoerceNumber 2> -= <CoerceNumber 2> => 0
966<CoerceNumber 2> * <CoerceNumber 2> = 4
967<CoerceNumber 2> *= <CoerceNumber 2> => 4
968<CoerceNumber 2> / <CoerceNumber 2> = 1
969<CoerceNumber 2> /= <CoerceNumber 2> => 1
970<CoerceNumber 2> ** <CoerceNumber 2> = 4
971<CoerceNumber 2> **= <CoerceNumber 2> => 4
972<CoerceNumber 2> % <CoerceNumber 2> = 0
973<CoerceNumber 2> %= <CoerceNumber 2> => 0
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000974divmod(2, 2) = (1, 0)
Neil Schemenauer38796d02001-01-03 01:52:11 +0000975divmod(2, 4.0) = (0.0, 2.0)
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000976divmod(2, 2) = (1L, 0L)
Neil Schemenauer38796d02001-01-03 01:52:11 +0000977divmod(2, (2+0j)) = ((1+0j), 0j)
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000978divmod(2, [1]) ... exceptions.TypeError
979divmod(2, (2,)) ... exceptions.TypeError
980divmod(2, None) ... exceptions.TypeError
981divmod(2, <MethodNumber 1>) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +0000982divmod(2, <CoerceNumber 2>) = (1, 0)
983divmod(4.0, 2) = (2.0, 0.0)
984divmod(4.0, 4.0) = (1.0, 0.0)
985divmod(4.0, 2) = (2.0, 0.0)
986divmod(4.0, (2+0j)) = ((2+0j), 0j)
987divmod(4.0, [1]) ... exceptions.TypeError
988divmod(4.0, (2,)) ... exceptions.TypeError
989divmod(4.0, None) ... exceptions.TypeError
990divmod(4.0, <MethodNumber 1>) ... exceptions.TypeError
991divmod(4.0, <CoerceNumber 2>) = (2.0, 0.0)
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000992divmod(2, 2) = (1L, 0L)
Neil Schemenauer38796d02001-01-03 01:52:11 +0000993divmod(2, 4.0) = (0.0, 2.0)
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000994divmod(2, 2) = (1L, 0L)
Neil Schemenauer38796d02001-01-03 01:52:11 +0000995divmod(2, (2+0j)) = ((1+0j), 0j)
Neil Schemenauerfd288c72001-01-02 16:30:31 +0000996divmod(2, [1]) ... exceptions.TypeError
997divmod(2, (2,)) ... exceptions.TypeError
998divmod(2, None) ... exceptions.TypeError
999divmod(2, <MethodNumber 1>) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001000divmod(2, <CoerceNumber 2>) = (1L, 0L)
1001divmod((2+0j), 2) = ((1+0j), 0j)
1002divmod((2+0j), 4.0) = (0j, (2+0j))
1003divmod((2+0j), 2) = ((1+0j), 0j)
1004divmod((2+0j), (2+0j)) = ((1+0j), 0j)
1005divmod((2+0j), [1]) ... exceptions.TypeError
1006divmod((2+0j), (2,)) ... exceptions.TypeError
1007divmod((2+0j), None) ... exceptions.TypeError
1008divmod((2+0j), <MethodNumber 1>) ... exceptions.TypeError
1009divmod((2+0j), <CoerceNumber 2>) = ((1+0j), 0j)
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001010divmod([1], 2) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001011divmod([1], 4.0) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001012divmod([1], 2) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001013divmod([1], (2+0j)) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001014divmod([1], [1]) ... exceptions.TypeError
1015divmod([1], (2,)) ... exceptions.TypeError
1016divmod([1], None) ... exceptions.TypeError
1017divmod([1], <MethodNumber 1>) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001018divmod([1], <CoerceNumber 2>) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001019divmod((2,), 2) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001020divmod((2,), 4.0) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001021divmod((2,), 2) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001022divmod((2,), (2+0j)) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001023divmod((2,), [1]) ... exceptions.TypeError
1024divmod((2,), (2,)) ... exceptions.TypeError
1025divmod((2,), None) ... exceptions.TypeError
1026divmod((2,), <MethodNumber 1>) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001027divmod((2,), <CoerceNumber 2>) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001028divmod(None, 2) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001029divmod(None, 4.0) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001030divmod(None, 2) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001031divmod(None, (2+0j)) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001032divmod(None, [1]) ... exceptions.TypeError
1033divmod(None, (2,)) ... exceptions.TypeError
1034divmod(None, None) ... exceptions.TypeError
1035divmod(None, <MethodNumber 1>) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001036divmod(None, <CoerceNumber 2>) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001037divmod(<MethodNumber 1>, 2) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001038divmod(<MethodNumber 1>, 4.0) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001039divmod(<MethodNumber 1>, 2) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001040divmod(<MethodNumber 1>, (2+0j)) ... exceptions.TypeError
Neil Schemenauerfd288c72001-01-02 16:30:31 +00001041divmod(<MethodNumber 1>, [1]) ... exceptions.TypeError
1042divmod(<MethodNumber 1>, (2,)) ... exceptions.TypeError
1043divmod(<MethodNumber 1>, None) ... exceptions.TypeError
1044divmod(<MethodNumber 1>, <MethodNumber 1>) ... exceptions.TypeError
Neil Schemenauer38796d02001-01-03 01:52:11 +00001045divmod(<MethodNumber 1>, <CoerceNumber 2>) ... exceptions.TypeError
1046divmod(<CoerceNumber 2>, 2) = (1, 0)
1047divmod(<CoerceNumber 2>, 4.0) = (0.0, 2.0)
1048divmod(<CoerceNumber 2>, 2) = (1L, 0L)
1049divmod(<CoerceNumber 2>, (2+0j)) = ((1+0j), 0j)
1050divmod(<CoerceNumber 2>, [1]) ... exceptions.TypeError
1051divmod(<CoerceNumber 2>, (2,)) ... exceptions.TypeError
1052divmod(<CoerceNumber 2>, None) ... exceptions.TypeError
1053divmod(<CoerceNumber 2>, <MethodNumber 1>) ... exceptions.TypeError
1054divmod(<CoerceNumber 2>, <CoerceNumber 2>) = (1, 0)