cpython: c2af917bde71 (original) (raw)
Mercurial > cpython
changeset 102782:c2af917bde71
PyFile_WriteObject() now uses fast call Issue #27128: PyFile_WriteObject() now calls _PyObject_FastCall() to avoid the creation of a temporary tuple. [#27128]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Sat, 20 Aug 2016 00:44:04 +0200 |
parents | 3ab32f7add6e |
children | 0da1ce362d15 |
files | Objects/fileobject.c |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-)[+] [-] Objects/fileobject.c 11 |
line wrap: on
line diff
--- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -127,7 +127,7 @@ PyFile_GetLine(PyObject *f, int n) int PyFile_WriteObject(PyObject *v, PyObject *f, int flags) {
- PyObject *writer, *value, *result; _Py_IDENTIFIER(write); if (f == NULL) { @@ -146,14 +146,7 @@ PyFile_WriteObject(PyObject *v, PyObject Py_DECREF(writer); return -1; }