Commit 0d1a799
committed
Avoid call_function_tail() for empty format str
Issue #27128, PyObject_CallFunction(), _PyObject_FastCall() and callmethod():
if the format string of parameters is empty, avoid the creation of an empty
tuple: call _PyObject_FastCall() without parameters.1 parent 71aea8e commit 0d1a799
1 file changed
Lines changed: 19 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2324 | 2324 | | |
2325 | 2325 | | |
2326 | 2326 | | |
2327 | | - | |
2328 | | - | |
2329 | | - | |
2330 | | - | |
2331 | | - | |
2332 | | - | |
2333 | | - | |
| 2327 | + | |
| 2328 | + | |
2334 | 2329 | | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
2335 | 2334 | | |
2336 | 2335 | | |
2337 | 2336 | | |
| |||
2351 | 2350 | | |
2352 | 2351 | | |
2353 | 2352 | | |
2354 | | - | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
2359 | | - | |
2360 | | - | |
| 2353 | + | |
| 2354 | + | |
2361 | 2355 | | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
2362 | 2360 | | |
2363 | 2361 | | |
2364 | 2362 | | |
| |||
2380 | 2378 | | |
2381 | 2379 | | |
2382 | 2380 | | |
2383 | | - | |
2384 | | - | |
2385 | | - | |
2386 | | - | |
2387 | | - | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
2388 | 2387 | | |
2389 | 2388 | | |
2390 | | - | |
| 2389 | + | |
2391 | 2390 | | |
2392 | 2391 | | |
2393 | 2392 | | |
| |||
0 commit comments