mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +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
|
@ -4673,7 +4673,7 @@ datetime_repr(PyDateTime_DateTime *self)
|
|||
static PyObject *
|
||||
datetime_str(PyDateTime_DateTime *self)
|
||||
{
|
||||
return _PyObject_CallMethodId((PyObject *)self, &PyId_isoformat, "(s)", " ");
|
||||
return _PyObject_CallMethodId((PyObject *)self, &PyId_isoformat, "s", " ");
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue