Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1 | test_coercion |
| 2 | 2 + 2 = 4 |
| 3 | 2 += 2 => 4 |
| 4 | 2 - 2 = 0 |
| 5 | 2 -= 2 => 0 |
| 6 | 2 * 2 = 4 |
| 7 | 2 *= 2 => 4 |
| 8 | 2 / 2 = 1 |
| 9 | 2 /= 2 => 1 |
| 10 | 2 ** 2 = 4 |
| 11 | 2 **= 2 => 4 |
| 12 | 2 % 2 = 0 |
| 13 | 2 %= 2 => 0 |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 14 | 2 + 4.0 = 6.0 |
| 15 | 2 += 4.0 => 6.0 |
| 16 | 2 - 4.0 = -2.0 |
| 17 | 2 -= 4.0 => -2.0 |
| 18 | 2 * 4.0 = 8.0 |
| 19 | 2 *= 4.0 => 8.0 |
| 20 | 2 / 4.0 = 0.5 |
| 21 | 2 /= 4.0 => 0.5 |
| 22 | 2 ** 4.0 = 16.0 |
| 23 | 2 **= 4.0 => 16.0 |
| 24 | 2 % 4.0 = 2.0 |
| 25 | 2 %= 4.0 => 2.0 |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 26 | 2 + 2 = 4 |
| 27 | 2 += 2 => 4 |
| 28 | 2 - 2 = 0 |
| 29 | 2 -= 2 => 0 |
| 30 | 2 * 2 = 4 |
| 31 | 2 *= 2 => 4 |
| 32 | 2 / 2 = 1 |
| 33 | 2 /= 2 => 1 |
| 34 | 2 ** 2 = 4 |
| 35 | 2 **= 2 => 4 |
| 36 | 2 % 2 = 0 |
| 37 | 2 %= 2 => 0 |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 38 | 2 + (2+0j) = (4+0j) |
| 39 | 2 += (2+0j) => (4+0j) |
| 40 | 2 - (2+0j) = 0j |
| 41 | 2 -= (2+0j) => 0j |
| 42 | 2 * (2+0j) = (4+0j) |
| 43 | 2 *= (2+0j) => (4+0j) |
| 44 | 2 / (2+0j) = (1+0j) |
| 45 | 2 /= (2+0j) => (1+0j) |
| 46 | 2 ** (2+0j) = (4+0j) |
| 47 | 2 **= (2+0j) => (4+0j) |
| 48 | 2 % (2+0j) = 0j |
| 49 | 2 %= (2+0j) => 0j |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 50 | 2 + [1] ... exceptions.TypeError |
| 51 | 2 += [1] ... exceptions.TypeError |
| 52 | 2 - [1] ... exceptions.TypeError |
| 53 | 2 -= [1] ... exceptions.TypeError |
| 54 | 2 * [1] = [1, 1] |
Neil Schemenauer | 623116a | 2001-01-04 01:36:25 +0000 | [diff] [blame] | 55 | 2 *= [1] => [1, 1] |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 56 | 2 / [1] ... exceptions.TypeError |
| 57 | 2 /= [1] ... exceptions.TypeError |
| 58 | 2 ** [1] ... exceptions.TypeError |
| 59 | 2 **= [1] ... exceptions.TypeError |
| 60 | 2 % [1] ... exceptions.TypeError |
| 61 | 2 %= [1] ... exceptions.TypeError |
| 62 | 2 + (2,) ... exceptions.TypeError |
| 63 | 2 += (2,) ... exceptions.TypeError |
| 64 | 2 - (2,) ... exceptions.TypeError |
| 65 | 2 -= (2,) ... exceptions.TypeError |
| 66 | 2 * (2,) = (2, 2) |
Neil Schemenauer | 623116a | 2001-01-04 01:36:25 +0000 | [diff] [blame] | 67 | 2 *= (2,) => (2, 2) |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 68 | 2 / (2,) ... exceptions.TypeError |
| 69 | 2 /= (2,) ... exceptions.TypeError |
| 70 | 2 ** (2,) ... exceptions.TypeError |
| 71 | 2 **= (2,) ... exceptions.TypeError |
| 72 | 2 % (2,) ... exceptions.TypeError |
| 73 | 2 %= (2,) ... exceptions.TypeError |
| 74 | 2 + None ... exceptions.TypeError |
| 75 | 2 += None ... exceptions.TypeError |
| 76 | 2 - None ... exceptions.TypeError |
| 77 | 2 -= None ... exceptions.TypeError |
| 78 | 2 * None ... exceptions.TypeError |
| 79 | 2 *= None ... exceptions.TypeError |
| 80 | 2 / None ... exceptions.TypeError |
| 81 | 2 /= None ... exceptions.TypeError |
| 82 | 2 ** None ... exceptions.TypeError |
| 83 | 2 **= None ... exceptions.TypeError |
| 84 | 2 % None ... exceptions.TypeError |
| 85 | 2 %= None ... exceptions.TypeError |
| 86 | 2 + <MethodNumber 1> = 3 |
| 87 | 2 += <MethodNumber 1> => 3 |
| 88 | 2 - <MethodNumber 1> = 1 |
| 89 | 2 -= <MethodNumber 1> => 1 |
| 90 | 2 * <MethodNumber 1> = 2 |
| 91 | 2 *= <MethodNumber 1> => 2 |
| 92 | 2 / <MethodNumber 1> = 2 |
| 93 | 2 /= <MethodNumber 1> => 2 |
| 94 | 2 ** <MethodNumber 1> = 2 |
| 95 | 2 **= <MethodNumber 1> => 2 |
| 96 | 2 % <MethodNumber 1> = 0 |
| 97 | 2 %= <MethodNumber 1> => 0 |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 98 | 2 + <CoerceNumber 2> = 4 |
| 99 | 2 += <CoerceNumber 2> => 4 |
| 100 | 2 - <CoerceNumber 2> = 0 |
| 101 | 2 -= <CoerceNumber 2> => 0 |
| 102 | 2 * <CoerceNumber 2> = 4 |
| 103 | 2 *= <CoerceNumber 2> => 4 |
| 104 | 2 / <CoerceNumber 2> = 1 |
| 105 | 2 /= <CoerceNumber 2> => 1 |
| 106 | 2 ** <CoerceNumber 2> = 4 |
| 107 | 2 **= <CoerceNumber 2> => 4 |
| 108 | 2 % <CoerceNumber 2> = 0 |
| 109 | 2 %= <CoerceNumber 2> => 0 |
| 110 | 4.0 + 2 = 6.0 |
| 111 | 4.0 += 2 => 6.0 |
| 112 | 4.0 - 2 = 2.0 |
| 113 | 4.0 -= 2 => 2.0 |
| 114 | 4.0 * 2 = 8.0 |
| 115 | 4.0 *= 2 => 8.0 |
| 116 | 4.0 / 2 = 2.0 |
| 117 | 4.0 /= 2 => 2.0 |
| 118 | 4.0 ** 2 = 16.0 |
| 119 | 4.0 **= 2 => 16.0 |
| 120 | 4.0 % 2 = 0.0 |
| 121 | 4.0 %= 2 => 0.0 |
| 122 | 4.0 + 4.0 = 8.0 |
| 123 | 4.0 += 4.0 => 8.0 |
| 124 | 4.0 - 4.0 = 0.0 |
| 125 | 4.0 -= 4.0 => 0.0 |
| 126 | 4.0 * 4.0 = 16.0 |
| 127 | 4.0 *= 4.0 => 16.0 |
| 128 | 4.0 / 4.0 = 1.0 |
| 129 | 4.0 /= 4.0 => 1.0 |
| 130 | 4.0 ** 4.0 = 256.0 |
| 131 | 4.0 **= 4.0 => 256.0 |
| 132 | 4.0 % 4.0 = 0.0 |
| 133 | 4.0 %= 4.0 => 0.0 |
| 134 | 4.0 + 2 = 6.0 |
| 135 | 4.0 += 2 => 6.0 |
| 136 | 4.0 - 2 = 2.0 |
| 137 | 4.0 -= 2 => 2.0 |
| 138 | 4.0 * 2 = 8.0 |
| 139 | 4.0 *= 2 => 8.0 |
| 140 | 4.0 / 2 = 2.0 |
| 141 | 4.0 /= 2 => 2.0 |
| 142 | 4.0 ** 2 = 16.0 |
| 143 | 4.0 **= 2 => 16.0 |
| 144 | 4.0 % 2 = 0.0 |
| 145 | 4.0 %= 2 => 0.0 |
| 146 | 4.0 + (2+0j) = (6+0j) |
| 147 | 4.0 += (2+0j) => (6+0j) |
| 148 | 4.0 - (2+0j) = (2+0j) |
| 149 | 4.0 -= (2+0j) => (2+0j) |
| 150 | 4.0 * (2+0j) = (8+0j) |
| 151 | 4.0 *= (2+0j) => (8+0j) |
| 152 | 4.0 / (2+0j) = (2+0j) |
| 153 | 4.0 /= (2+0j) => (2+0j) |
| 154 | 4.0 ** (2+0j) = (16+0j) |
| 155 | 4.0 **= (2+0j) => (16+0j) |
| 156 | 4.0 % (2+0j) = 0j |
| 157 | 4.0 %= (2+0j) => 0j |
| 158 | 4.0 + [1] ... exceptions.TypeError |
| 159 | 4.0 += [1] ... exceptions.TypeError |
| 160 | 4.0 - [1] ... exceptions.TypeError |
| 161 | 4.0 -= [1] ... exceptions.TypeError |
| 162 | 4.0 * [1] ... exceptions.TypeError |
| 163 | 4.0 *= [1] ... exceptions.TypeError |
| 164 | 4.0 / [1] ... exceptions.TypeError |
| 165 | 4.0 /= [1] ... exceptions.TypeError |
| 166 | 4.0 ** [1] ... exceptions.TypeError |
| 167 | 4.0 **= [1] ... exceptions.TypeError |
| 168 | 4.0 % [1] ... exceptions.TypeError |
| 169 | 4.0 %= [1] ... exceptions.TypeError |
| 170 | 4.0 + (2,) ... exceptions.TypeError |
| 171 | 4.0 += (2,) ... exceptions.TypeError |
| 172 | 4.0 - (2,) ... exceptions.TypeError |
| 173 | 4.0 -= (2,) ... exceptions.TypeError |
| 174 | 4.0 * (2,) ... exceptions.TypeError |
| 175 | 4.0 *= (2,) ... exceptions.TypeError |
| 176 | 4.0 / (2,) ... exceptions.TypeError |
| 177 | 4.0 /= (2,) ... exceptions.TypeError |
| 178 | 4.0 ** (2,) ... exceptions.TypeError |
| 179 | 4.0 **= (2,) ... exceptions.TypeError |
| 180 | 4.0 % (2,) ... exceptions.TypeError |
| 181 | 4.0 %= (2,) ... exceptions.TypeError |
| 182 | 4.0 + None ... exceptions.TypeError |
| 183 | 4.0 += None ... exceptions.TypeError |
| 184 | 4.0 - None ... exceptions.TypeError |
| 185 | 4.0 -= None ... exceptions.TypeError |
| 186 | 4.0 * None ... exceptions.TypeError |
| 187 | 4.0 *= None ... exceptions.TypeError |
| 188 | 4.0 / None ... exceptions.TypeError |
| 189 | 4.0 /= None ... exceptions.TypeError |
| 190 | 4.0 ** None ... exceptions.TypeError |
| 191 | 4.0 **= None ... exceptions.TypeError |
| 192 | 4.0 % None ... exceptions.TypeError |
| 193 | 4.0 %= None ... exceptions.TypeError |
| 194 | 4.0 + <MethodNumber 1> = 5.0 |
| 195 | 4.0 += <MethodNumber 1> => 5.0 |
| 196 | 4.0 - <MethodNumber 1> = 3.0 |
| 197 | 4.0 -= <MethodNumber 1> => 3.0 |
| 198 | 4.0 * <MethodNumber 1> = 4.0 |
| 199 | 4.0 *= <MethodNumber 1> => 4.0 |
| 200 | 4.0 / <MethodNumber 1> = 4.0 |
| 201 | 4.0 /= <MethodNumber 1> => 4.0 |
| 202 | 4.0 ** <MethodNumber 1> = 4.0 |
| 203 | 4.0 **= <MethodNumber 1> => 4.0 |
| 204 | 4.0 % <MethodNumber 1> = 0.0 |
| 205 | 4.0 %= <MethodNumber 1> => 0.0 |
| 206 | 4.0 + <CoerceNumber 2> = 6.0 |
| 207 | 4.0 += <CoerceNumber 2> => 6.0 |
| 208 | 4.0 - <CoerceNumber 2> = 2.0 |
| 209 | 4.0 -= <CoerceNumber 2> => 2.0 |
| 210 | 4.0 * <CoerceNumber 2> = 8.0 |
| 211 | 4.0 *= <CoerceNumber 2> => 8.0 |
| 212 | 4.0 / <CoerceNumber 2> = 2.0 |
| 213 | 4.0 /= <CoerceNumber 2> => 2.0 |
| 214 | 4.0 ** <CoerceNumber 2> = 16.0 |
| 215 | 4.0 **= <CoerceNumber 2> => 16.0 |
| 216 | 4.0 % <CoerceNumber 2> = 0.0 |
| 217 | 4.0 %= <CoerceNumber 2> => 0.0 |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 218 | 2 + 2 = 4 |
| 219 | 2 += 2 => 4 |
| 220 | 2 - 2 = 0 |
| 221 | 2 -= 2 => 0 |
| 222 | 2 * 2 = 4 |
| 223 | 2 *= 2 => 4 |
| 224 | 2 / 2 = 1 |
| 225 | 2 /= 2 => 1 |
| 226 | 2 ** 2 = 4 |
| 227 | 2 **= 2 => 4 |
| 228 | 2 % 2 = 0 |
| 229 | 2 %= 2 => 0 |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 230 | 2 + 4.0 = 6.0 |
| 231 | 2 += 4.0 => 6.0 |
| 232 | 2 - 4.0 = -2.0 |
| 233 | 2 -= 4.0 => -2.0 |
| 234 | 2 * 4.0 = 8.0 |
| 235 | 2 *= 4.0 => 8.0 |
| 236 | 2 / 4.0 = 0.5 |
| 237 | 2 /= 4.0 => 0.5 |
| 238 | 2 ** 4.0 = 16.0 |
| 239 | 2 **= 4.0 => 16.0 |
| 240 | 2 % 4.0 = 2.0 |
| 241 | 2 %= 4.0 => 2.0 |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 242 | 2 + 2 = 4 |
| 243 | 2 += 2 => 4 |
| 244 | 2 - 2 = 0 |
| 245 | 2 -= 2 => 0 |
| 246 | 2 * 2 = 4 |
| 247 | 2 *= 2 => 4 |
| 248 | 2 / 2 = 1 |
| 249 | 2 /= 2 => 1 |
| 250 | 2 ** 2 = 4 |
| 251 | 2 **= 2 => 4 |
| 252 | 2 % 2 = 0 |
| 253 | 2 %= 2 => 0 |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 254 | 2 + (2+0j) = (4+0j) |
| 255 | 2 += (2+0j) => (4+0j) |
| 256 | 2 - (2+0j) = 0j |
| 257 | 2 -= (2+0j) => 0j |
| 258 | 2 * (2+0j) = (4+0j) |
| 259 | 2 *= (2+0j) => (4+0j) |
| 260 | 2 / (2+0j) = (1+0j) |
| 261 | 2 /= (2+0j) => (1+0j) |
| 262 | 2 ** (2+0j) = (4+0j) |
| 263 | 2 **= (2+0j) => (4+0j) |
| 264 | 2 % (2+0j) = 0j |
| 265 | 2 %= (2+0j) => 0j |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 266 | 2 + [1] ... exceptions.TypeError |
| 267 | 2 += [1] ... exceptions.TypeError |
| 268 | 2 - [1] ... exceptions.TypeError |
| 269 | 2 -= [1] ... exceptions.TypeError |
| 270 | 2 * [1] = [1, 1] |
Neil Schemenauer | 623116a | 2001-01-04 01:36:25 +0000 | [diff] [blame] | 271 | 2 *= [1] => [1, 1] |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 272 | 2 / [1] ... exceptions.TypeError |
| 273 | 2 /= [1] ... exceptions.TypeError |
| 274 | 2 ** [1] ... exceptions.TypeError |
| 275 | 2 **= [1] ... exceptions.TypeError |
| 276 | 2 % [1] ... exceptions.TypeError |
| 277 | 2 %= [1] ... exceptions.TypeError |
| 278 | 2 + (2,) ... exceptions.TypeError |
| 279 | 2 += (2,) ... exceptions.TypeError |
| 280 | 2 - (2,) ... exceptions.TypeError |
| 281 | 2 -= (2,) ... exceptions.TypeError |
| 282 | 2 * (2,) = (2, 2) |
Neil Schemenauer | 623116a | 2001-01-04 01:36:25 +0000 | [diff] [blame] | 283 | 2 *= (2,) => (2, 2) |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 284 | 2 / (2,) ... exceptions.TypeError |
| 285 | 2 /= (2,) ... exceptions.TypeError |
| 286 | 2 ** (2,) ... exceptions.TypeError |
| 287 | 2 **= (2,) ... exceptions.TypeError |
| 288 | 2 % (2,) ... exceptions.TypeError |
| 289 | 2 %= (2,) ... exceptions.TypeError |
| 290 | 2 + None ... exceptions.TypeError |
| 291 | 2 += None ... exceptions.TypeError |
| 292 | 2 - None ... exceptions.TypeError |
| 293 | 2 -= None ... exceptions.TypeError |
| 294 | 2 * None ... exceptions.TypeError |
| 295 | 2 *= None ... exceptions.TypeError |
| 296 | 2 / None ... exceptions.TypeError |
| 297 | 2 /= None ... exceptions.TypeError |
| 298 | 2 ** None ... exceptions.TypeError |
| 299 | 2 **= None ... exceptions.TypeError |
| 300 | 2 % None ... exceptions.TypeError |
| 301 | 2 %= None ... exceptions.TypeError |
| 302 | 2 + <MethodNumber 1> = 3 |
| 303 | 2 += <MethodNumber 1> => 3 |
| 304 | 2 - <MethodNumber 1> = 1 |
| 305 | 2 -= <MethodNumber 1> => 1 |
| 306 | 2 * <MethodNumber 1> = 2 |
| 307 | 2 *= <MethodNumber 1> => 2 |
| 308 | 2 / <MethodNumber 1> = 2 |
| 309 | 2 /= <MethodNumber 1> => 2 |
| 310 | 2 ** <MethodNumber 1> = 2 |
| 311 | 2 **= <MethodNumber 1> => 2 |
| 312 | 2 % <MethodNumber 1> = 0 |
| 313 | 2 %= <MethodNumber 1> => 0 |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 314 | 2 + <CoerceNumber 2> = 4 |
| 315 | 2 += <CoerceNumber 2> => 4 |
| 316 | 2 - <CoerceNumber 2> = 0 |
| 317 | 2 -= <CoerceNumber 2> => 0 |
| 318 | 2 * <CoerceNumber 2> = 4 |
| 319 | 2 *= <CoerceNumber 2> => 4 |
| 320 | 2 / <CoerceNumber 2> = 1 |
| 321 | 2 /= <CoerceNumber 2> => 1 |
| 322 | 2 ** <CoerceNumber 2> = 4 |
| 323 | 2 **= <CoerceNumber 2> => 4 |
| 324 | 2 % <CoerceNumber 2> = 0 |
| 325 | 2 %= <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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 434 | [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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 446 | [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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 458 | [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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 470 | [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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 482 | [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 Peters | 6912d4d | 2001-05-05 03:56:37 +0000 | [diff] [blame] | 519 | [1] += <MethodNumber 1> ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 520 | [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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 530 | [1] + <CoerceNumber 2> ... exceptions.TypeError |
Tim Peters | 6912d4d | 2001-05-05 03:56:37 +0000 | [diff] [blame] | 531 | [1] += <CoerceNumber 2> ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 532 | [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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 542 | (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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 554 | (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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 566 | (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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 578 | (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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 590 | (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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 638 | (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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 650 | None + 2 ... exceptions.TypeError |
| 651 | None += 2 ... exceptions.TypeError |
| 652 | None - 2 ... exceptions.TypeError |
| 653 | None -= 2 ... exceptions.TypeError |
| 654 | None * 2 ... exceptions.TypeError |
| 655 | None *= 2 ... exceptions.TypeError |
| 656 | None / 2 ... exceptions.TypeError |
| 657 | None /= 2 ... exceptions.TypeError |
| 658 | None ** 2 ... exceptions.TypeError |
| 659 | None **= 2 ... exceptions.TypeError |
| 660 | None % 2 ... exceptions.TypeError |
| 661 | None %= 2 ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 662 | None + 4.0 ... exceptions.TypeError |
| 663 | None += 4.0 ... exceptions.TypeError |
| 664 | None - 4.0 ... exceptions.TypeError |
| 665 | None -= 4.0 ... exceptions.TypeError |
| 666 | None * 4.0 ... exceptions.TypeError |
| 667 | None *= 4.0 ... exceptions.TypeError |
| 668 | None / 4.0 ... exceptions.TypeError |
| 669 | None /= 4.0 ... exceptions.TypeError |
| 670 | None ** 4.0 ... exceptions.TypeError |
| 671 | None **= 4.0 ... exceptions.TypeError |
| 672 | None % 4.0 ... exceptions.TypeError |
| 673 | None %= 4.0 ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 674 | None + 2 ... exceptions.TypeError |
| 675 | None += 2 ... exceptions.TypeError |
| 676 | None - 2 ... exceptions.TypeError |
| 677 | None -= 2 ... exceptions.TypeError |
| 678 | None * 2 ... exceptions.TypeError |
| 679 | None *= 2 ... exceptions.TypeError |
| 680 | None / 2 ... exceptions.TypeError |
| 681 | None /= 2 ... exceptions.TypeError |
| 682 | None ** 2 ... exceptions.TypeError |
| 683 | None **= 2 ... exceptions.TypeError |
| 684 | None % 2 ... exceptions.TypeError |
| 685 | None %= 2 ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 686 | None + (2+0j) ... exceptions.TypeError |
| 687 | None += (2+0j) ... exceptions.TypeError |
| 688 | None - (2+0j) ... exceptions.TypeError |
| 689 | None -= (2+0j) ... exceptions.TypeError |
| 690 | None * (2+0j) ... exceptions.TypeError |
| 691 | None *= (2+0j) ... exceptions.TypeError |
| 692 | None / (2+0j) ... exceptions.TypeError |
| 693 | None /= (2+0j) ... exceptions.TypeError |
| 694 | None ** (2+0j) ... exceptions.TypeError |
| 695 | None **= (2+0j) ... exceptions.TypeError |
| 696 | None % (2+0j) ... exceptions.TypeError |
| 697 | None %= (2+0j) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 698 | None + [1] ... exceptions.TypeError |
| 699 | None += [1] ... exceptions.TypeError |
| 700 | None - [1] ... exceptions.TypeError |
| 701 | None -= [1] ... exceptions.TypeError |
| 702 | None * [1] ... exceptions.TypeError |
| 703 | None *= [1] ... exceptions.TypeError |
| 704 | None / [1] ... exceptions.TypeError |
| 705 | None /= [1] ... exceptions.TypeError |
| 706 | None ** [1] ... exceptions.TypeError |
| 707 | None **= [1] ... exceptions.TypeError |
| 708 | None % [1] ... exceptions.TypeError |
| 709 | None %= [1] ... exceptions.TypeError |
| 710 | None + (2,) ... exceptions.TypeError |
| 711 | None += (2,) ... exceptions.TypeError |
| 712 | None - (2,) ... exceptions.TypeError |
| 713 | None -= (2,) ... exceptions.TypeError |
| 714 | None * (2,) ... exceptions.TypeError |
| 715 | None *= (2,) ... exceptions.TypeError |
| 716 | None / (2,) ... exceptions.TypeError |
| 717 | None /= (2,) ... exceptions.TypeError |
| 718 | None ** (2,) ... exceptions.TypeError |
| 719 | None **= (2,) ... exceptions.TypeError |
| 720 | None % (2,) ... exceptions.TypeError |
| 721 | None %= (2,) ... exceptions.TypeError |
| 722 | None + None ... exceptions.TypeError |
| 723 | None += None ... exceptions.TypeError |
| 724 | None - None ... exceptions.TypeError |
| 725 | None -= None ... exceptions.TypeError |
| 726 | None * None ... exceptions.TypeError |
| 727 | None *= None ... exceptions.TypeError |
| 728 | None / None ... exceptions.TypeError |
| 729 | None /= None ... exceptions.TypeError |
| 730 | None ** None ... exceptions.TypeError |
| 731 | None **= None ... exceptions.TypeError |
| 732 | None % None ... exceptions.TypeError |
| 733 | None %= None ... exceptions.TypeError |
| 734 | None + <MethodNumber 1> ... exceptions.TypeError |
| 735 | None += <MethodNumber 1> ... exceptions.TypeError |
| 736 | None - <MethodNumber 1> ... exceptions.TypeError |
| 737 | None -= <MethodNumber 1> ... exceptions.TypeError |
| 738 | None * <MethodNumber 1> ... exceptions.TypeError |
| 739 | None *= <MethodNumber 1> ... exceptions.TypeError |
| 740 | None / <MethodNumber 1> ... exceptions.TypeError |
| 741 | None /= <MethodNumber 1> ... exceptions.TypeError |
| 742 | None ** <MethodNumber 1> ... exceptions.TypeError |
| 743 | None **= <MethodNumber 1> ... exceptions.TypeError |
| 744 | None % <MethodNumber 1> ... exceptions.TypeError |
| 745 | None %= <MethodNumber 1> ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 746 | None + <CoerceNumber 2> ... exceptions.TypeError |
| 747 | None += <CoerceNumber 2> ... exceptions.TypeError |
| 748 | None - <CoerceNumber 2> ... exceptions.TypeError |
| 749 | None -= <CoerceNumber 2> ... exceptions.TypeError |
| 750 | None * <CoerceNumber 2> ... exceptions.TypeError |
| 751 | None *= <CoerceNumber 2> ... exceptions.TypeError |
| 752 | None / <CoerceNumber 2> ... exceptions.TypeError |
| 753 | None /= <CoerceNumber 2> ... exceptions.TypeError |
| 754 | None ** <CoerceNumber 2> ... exceptions.TypeError |
| 755 | None **= <CoerceNumber 2> ... exceptions.TypeError |
| 756 | None % <CoerceNumber 2> ... exceptions.TypeError |
| 757 | None %= <CoerceNumber 2> ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 758 | <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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 770 | <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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 782 | <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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 794 | <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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 806 | <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 Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 854 | <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 Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 974 | divmod(2, 2) = (1, 0) |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 975 | divmod(2, 4.0) = (0.0, 2.0) |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 976 | divmod(2, 2) = (1L, 0L) |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 977 | divmod(2, (2+0j)) = ((1+0j), 0j) |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 978 | divmod(2, [1]) ... exceptions.TypeError |
| 979 | divmod(2, (2,)) ... exceptions.TypeError |
| 980 | divmod(2, None) ... exceptions.TypeError |
| 981 | divmod(2, <MethodNumber 1>) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 982 | divmod(2, <CoerceNumber 2>) = (1, 0) |
| 983 | divmod(4.0, 2) = (2.0, 0.0) |
| 984 | divmod(4.0, 4.0) = (1.0, 0.0) |
| 985 | divmod(4.0, 2) = (2.0, 0.0) |
| 986 | divmod(4.0, (2+0j)) = ((2+0j), 0j) |
| 987 | divmod(4.0, [1]) ... exceptions.TypeError |
| 988 | divmod(4.0, (2,)) ... exceptions.TypeError |
| 989 | divmod(4.0, None) ... exceptions.TypeError |
| 990 | divmod(4.0, <MethodNumber 1>) ... exceptions.TypeError |
| 991 | divmod(4.0, <CoerceNumber 2>) = (2.0, 0.0) |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 992 | divmod(2, 2) = (1L, 0L) |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 993 | divmod(2, 4.0) = (0.0, 2.0) |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 994 | divmod(2, 2) = (1L, 0L) |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 995 | divmod(2, (2+0j)) = ((1+0j), 0j) |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 996 | divmod(2, [1]) ... exceptions.TypeError |
| 997 | divmod(2, (2,)) ... exceptions.TypeError |
| 998 | divmod(2, None) ... exceptions.TypeError |
| 999 | divmod(2, <MethodNumber 1>) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1000 | divmod(2, <CoerceNumber 2>) = (1L, 0L) |
| 1001 | divmod((2+0j), 2) = ((1+0j), 0j) |
| 1002 | divmod((2+0j), 4.0) = (0j, (2+0j)) |
| 1003 | divmod((2+0j), 2) = ((1+0j), 0j) |
| 1004 | divmod((2+0j), (2+0j)) = ((1+0j), 0j) |
| 1005 | divmod((2+0j), [1]) ... exceptions.TypeError |
| 1006 | divmod((2+0j), (2,)) ... exceptions.TypeError |
| 1007 | divmod((2+0j), None) ... exceptions.TypeError |
| 1008 | divmod((2+0j), <MethodNumber 1>) ... exceptions.TypeError |
| 1009 | divmod((2+0j), <CoerceNumber 2>) = ((1+0j), 0j) |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1010 | divmod([1], 2) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1011 | divmod([1], 4.0) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1012 | divmod([1], 2) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1013 | divmod([1], (2+0j)) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1014 | divmod([1], [1]) ... exceptions.TypeError |
| 1015 | divmod([1], (2,)) ... exceptions.TypeError |
| 1016 | divmod([1], None) ... exceptions.TypeError |
| 1017 | divmod([1], <MethodNumber 1>) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1018 | divmod([1], <CoerceNumber 2>) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1019 | divmod((2,), 2) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1020 | divmod((2,), 4.0) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1021 | divmod((2,), 2) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1022 | divmod((2,), (2+0j)) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1023 | divmod((2,), [1]) ... exceptions.TypeError |
| 1024 | divmod((2,), (2,)) ... exceptions.TypeError |
| 1025 | divmod((2,), None) ... exceptions.TypeError |
| 1026 | divmod((2,), <MethodNumber 1>) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1027 | divmod((2,), <CoerceNumber 2>) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1028 | divmod(None, 2) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1029 | divmod(None, 4.0) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1030 | divmod(None, 2) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1031 | divmod(None, (2+0j)) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1032 | divmod(None, [1]) ... exceptions.TypeError |
| 1033 | divmod(None, (2,)) ... exceptions.TypeError |
| 1034 | divmod(None, None) ... exceptions.TypeError |
| 1035 | divmod(None, <MethodNumber 1>) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1036 | divmod(None, <CoerceNumber 2>) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1037 | divmod(<MethodNumber 1>, 2) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1038 | divmod(<MethodNumber 1>, 4.0) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1039 | divmod(<MethodNumber 1>, 2) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1040 | divmod(<MethodNumber 1>, (2+0j)) ... exceptions.TypeError |
Neil Schemenauer | fd288c7 | 2001-01-02 16:30:31 +0000 | [diff] [blame] | 1041 | divmod(<MethodNumber 1>, [1]) ... exceptions.TypeError |
| 1042 | divmod(<MethodNumber 1>, (2,)) ... exceptions.TypeError |
| 1043 | divmod(<MethodNumber 1>, None) ... exceptions.TypeError |
| 1044 | divmod(<MethodNumber 1>, <MethodNumber 1>) ... exceptions.TypeError |
Neil Schemenauer | 38796d0 | 2001-01-03 01:52:11 +0000 | [diff] [blame] | 1045 | divmod(<MethodNumber 1>, <CoerceNumber 2>) ... exceptions.TypeError |
| 1046 | divmod(<CoerceNumber 2>, 2) = (1, 0) |
| 1047 | divmod(<CoerceNumber 2>, 4.0) = (0.0, 2.0) |
| 1048 | divmod(<CoerceNumber 2>, 2) = (1L, 0L) |
| 1049 | divmod(<CoerceNumber 2>, (2+0j)) = ((1+0j), 0j) |
| 1050 | divmod(<CoerceNumber 2>, [1]) ... exceptions.TypeError |
| 1051 | divmod(<CoerceNumber 2>, (2,)) ... exceptions.TypeError |
| 1052 | divmod(<CoerceNumber 2>, None) ... exceptions.TypeError |
| 1053 | divmod(<CoerceNumber 2>, <MethodNumber 1>) ... exceptions.TypeError |
| 1054 | divmod(<CoerceNumber 2>, <CoerceNumber 2>) = (1, 0) |