cpython: 6eb586b85fa1 (original) (raw)

Mercurial > cpython

changeset 102775:6eb586b85fa1

Issue #27128: slot_sq_item() uses fast call slot_sq_item() now calls _PyObject_FastCall() to avoid the creation of a temporary tuple of 1 item to pass the 'item' argument to the slot function. [#27128]

Victor Stinner victor.stinner@gmail.com
date Fri, 19 Aug 2016 18:19:42 +0200
parents 2d2bc1906b5b
children 605a42a50496
files Objects/typeobject.c
diffstat 1 files changed, 3 insertions(+), 10 deletions(-)[+] [-] Objects/typeobject.c 13

line wrap: on

line diff

--- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5808,7 +5808,7 @@ slot_sq_length(PyObject *self) static PyObject * slot_sq_item(PyObject *self, Py_ssize_t i) {

-