mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Don't parenthesis in _PyObject_CallMethodId() format
Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation a temporary tuple, and so is more efficient.
This commit is contained in:
parent
ef7def94c7
commit
4c38154a43
3 changed files with 3 additions and 3 deletions
|
@ -5716,7 +5716,7 @@ PyInit__decimal(void)
|
|||
/* DecimalTuple */
|
||||
ASSIGN_PTR(collections, PyImport_ImportModule("collections"));
|
||||
ASSIGN_PTR(DecimalTuple, (PyTypeObject *)PyObject_CallMethod(collections,
|
||||
"namedtuple", "(ss)", "DecimalTuple",
|
||||
"namedtuple", "ss", "DecimalTuple",
|
||||
"sign digits exponent"));
|
||||
|
||||
ASSIGN_PTR(obj, PyUnicode_FromString("decimal"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue