Lines Matching refs:nattrs
1113 Py_ssize_t nattrs; member
1125 Py_ssize_t nattrs, idx, char_idx; in attrgetter_new() local
1130 nattrs = PyTuple_GET_SIZE(args); in attrgetter_new()
1131 if (nattrs <= 1) { in attrgetter_new()
1136 attr = PyTuple_New(nattrs); in attrgetter_new()
1141 for (idx = 0; idx < nattrs; ++idx) { in attrgetter_new()
1226 ag->nattrs = nattrs; in attrgetter_new()
1284 Py_ssize_t i, nattrs=ag->nattrs; in attrgetter_call() local
1290 if (ag->nattrs == 1) /* ag->attr is always a tuple */ in attrgetter_call()
1294 assert(PyTuple_GET_SIZE(ag->attr) == nattrs); in attrgetter_call()
1296 result = PyTuple_New(nattrs); in attrgetter_call()
1300 for (i=0 ; i < nattrs ; i++) { in attrgetter_call()
1334 PyObject *attrstrings = PyTuple_New(ag->nattrs); in attrgetter_args()
1338 for (i = 0; i < ag->nattrs; ++i) { in attrgetter_args()
1363 if (ag->nattrs == 1) { in attrgetter_repr()