diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-08 23:33:39 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-08 23:33:39 (GMT) |
commit | 4c38154a432885a933b539c2682e66caaf440117 (patch) | |
tree | 84f6d0fbe46ac26057383ea0606754f7d28eec0c /Modules/_decimal/_decimal.c | |
parent | ef7def94c7c681a10031e88efd6511f5c4ff2c75 (diff) | |
download | cpython-4c38154a432885a933b539c2682e66caaf440117.zip cpython-4c38154a432885a933b539c2682e66caaf440117.tar.gz cpython-4c38154a432885a933b539c2682e66caaf440117.tar.bz2 |
Don't parenthesis in _PyObject_CallMethodId() format
Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation
a temporary tuple, and so is more efficient.
Diffstat (limited to 'Modules/_decimal/_decimal.c')
-rw-r--r-- | Modules/_decimal/_decimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 9797089..9e8625d 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -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")); |