Commit 5abaa2b
committed
Use PyObject_CallFunctionObjArgs()
Issue #28915: Replace PyObject_CallFunction() with
PyObject_CallFunctionObjArgs() when the format string was only made of "O"
formats, PyObject* arguments.
PyObject_CallFunctionObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.1 parent 55ba38a commit 5abaa2b
3 files changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2496 | 2496 | | |
2497 | 2497 | | |
2498 | 2498 | | |
2499 | | - | |
| 2499 | + | |
| 2500 | + | |
2500 | 2501 | | |
2501 | 2502 | | |
2502 | 2503 | | |
2503 | | - | |
| 2504 | + | |
| 2505 | + | |
2504 | 2506 | | |
2505 | 2507 | | |
2506 | 2508 | | |
| |||
2977 | 2979 | | |
2978 | 2980 | | |
2979 | 2981 | | |
2980 | | - | |
| 2982 | + | |
| 2983 | + | |
2981 | 2984 | | |
2982 | 2985 | | |
2983 | 2986 | | |
| |||
3143 | 3146 | | |
3144 | 3147 | | |
3145 | 3148 | | |
3146 | | - | |
3147 | | - | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
3148 | 3152 | | |
3149 | 3153 | | |
3150 | 3154 | | |
| |||
3163 | 3167 | | |
3164 | 3168 | | |
3165 | 3169 | | |
3166 | | - | |
3167 | | - | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
3168 | 3173 | | |
3169 | 3174 | | |
3170 | 3175 | | |
| |||
3191 | 3196 | | |
3192 | 3197 | | |
3193 | 3198 | | |
3194 | | - | |
| 3199 | + | |
| 3200 | + | |
3195 | 3201 | | |
3196 | 3202 | | |
3197 | 3203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2549 | 2549 | | |
2550 | 2550 | | |
2551 | 2551 | | |
2552 | | - | |
| 2552 | + | |
2553 | 2553 | | |
2554 | 2554 | | |
2555 | 2555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1454 | 1454 | | |
1455 | 1455 | | |
1456 | 1456 | | |
1457 | | - | |
| 1457 | + | |
1458 | 1458 | | |
1459 | 1459 | | |
1460 | 1460 | | |
| |||
0 commit comments