Home
last modified time | relevance | path

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

/third_party/python/Modules/
D_operator.c1145 Py_ssize_t nattrs; member
1155 Py_ssize_t nattrs, idx, char_idx; in attrgetter_new() local
1160 nattrs = PyTuple_GET_SIZE(args); in attrgetter_new()
1161 if (nattrs <= 1) { in attrgetter_new()
1166 attr = PyTuple_New(nattrs); in attrgetter_new()
1171 for (idx = 0; idx < nattrs; ++idx) { in attrgetter_new()
1257 ag->nattrs = nattrs; in attrgetter_new()
1325 Py_ssize_t i, nattrs=ag->nattrs; in attrgetter_call() local
1332 if (ag->nattrs == 1) /* ag->attr is always a tuple */ in attrgetter_call()
1336 assert(PyTuple_GET_SIZE(ag->attr) == nattrs); in attrgetter_call()
[all …]
/third_party/libnl/python/examples/
Dwiphy.py79 nattrs = nl.nla_get_nested(attr[nl80211.NL80211_ATTR_WIPHY_BANDS])
80 for nattr in nattrs:
/third_party/python/Python/
Dcompile.c5891 Py_ssize_t nattrs = asdl_seq_LEN(attrs); in validate_kwd_attrs() local
5892 for (Py_ssize_t i = 0; i < nattrs; i++) { in validate_kwd_attrs()
5898 for (Py_ssize_t j = i + 1; j < nattrs; j++) { in validate_kwd_attrs()
5918 Py_ssize_t nattrs = asdl_seq_LEN(kwd_attrs); in compiler_pattern_class() local
5920 if (nattrs != nkwd_patterns) { in compiler_pattern_class()
5924 return compiler_error(c, e, nattrs, nkwd_patterns); in compiler_pattern_class()
5926 if (INT_MAX < nargs || INT_MAX < nargs + nattrs - 1) { in compiler_pattern_class()
5930 if (nattrs) { in compiler_pattern_class()
5936 RETURN_IF_FALSE(attr_names = PyTuple_New(nattrs)); in compiler_pattern_class()
5938 for (i = 0; i < nattrs; i++) { in compiler_pattern_class()
[all …]