Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_operator.c1142 Py_ssize_t nattrs; member
1154 Py_ssize_t nattrs, idx, char_idx; in attrgetter_new() local
1159 nattrs = PyTuple_GET_SIZE(args); in attrgetter_new()
1160 if (nattrs <= 1) { in attrgetter_new()
1165 attr = PyTuple_New(nattrs); in attrgetter_new()
1170 for (idx = 0; idx < nattrs; ++idx) { in attrgetter_new()
1255 ag->nattrs = nattrs; in attrgetter_new()
1313 Py_ssize_t i, nattrs=ag->nattrs; in attrgetter_call() local
1320 if (ag->nattrs == 1) /* ag->attr is always a tuple */ in attrgetter_call()
1324 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: