cpython: 620b2e554be4 (original) (raw)
Mercurial > cpython
changeset 102853:620b2e554be4
Issue #27809: builtin___build_class__() uses fast call [#27809]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Tue, 23 Aug 2016 01:34:35 +0200 |
parents | bf2d88cf039a |
children | 3310ea7dbe30 |
files | Python/bltinmodule.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-)[+] [-] Python/bltinmodule.c 8 |
line wrap: on
line diff
--- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -169,12 +169,8 @@ builtin___build_class__(PyObject *self, NULL, 0, NULL, 0, NULL, 0, NULL, PyFunction_GET_CLOSURE(func)); if (cell != NULL) {
PyObject *margs;[](#l1.7)
margs = PyTuple_Pack(3, name, bases, ns);[](#l1.8)
if (margs != NULL) {[](#l1.9)
cls = PyEval_CallObjectWithKeywords(meta, margs, mkw);[](#l1.10)
Py_DECREF(margs);[](#l1.11)
}[](#l1.12)
PyObject *margs[3] = {name, bases, ns};[](#l1.13)
cls = _PyObject_FastCallDict(meta, margs, 3, mkw);[](#l1.14) if (cls != NULL && PyCell_Check(cell))[](#l1.15) PyCell_Set(cell, cls);[](#l1.16) Py_DECREF(cell);[](#l1.17)