Avoid call_function_tail() for empty format str · pythoncapi/cpython@0d1a799 · GitHub
Skip to content

Commit 0d1a799

Browse files
committed
Avoid call_function_tail() for empty format str
Issue python#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

File tree

Objects/abstract.c

Lines changed: 19 additions & 20 deletions

0 commit comments

Comments
 (0)