Home
last modified time | relevance | path

Searched refs:nattrs (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Modules/
D_operator.c1113 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()
[all …]
/external/python/cpython2/Modules/
Doperator.c596 Py_ssize_t nattrs; member
607 Py_ssize_t nattrs; in attrgetter_new() local
612 nattrs = PyTuple_GET_SIZE(args); in attrgetter_new()
613 if (nattrs <= 1) { in attrgetter_new()
626 ag->nattrs = nattrs; in attrgetter_new()
694 Py_ssize_t i, nattrs=ag->nattrs; in attrgetter_call() local
700 if (ag->nattrs == 1) in attrgetter_call()
704 assert(PyTuple_GET_SIZE(ag->attr) == nattrs); in attrgetter_call()
706 result = PyTuple_New(nattrs); in attrgetter_call()
710 for (i=0 ; i < nattrs ; i++) { in attrgetter_call()
/external/libnl/python/examples/
Dwiphy.py79 nattrs = nl.nla_get_nested(attr[nl80211.NL80211_ATTR_WIPHY_BANDS])
80 for nattr in nattrs: