Home
last modified time | relevance | path

Searched refs:n_unnamed_fields (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Objects/
Dstructseq.c16 _Py_IDENTIFIER(n_unnamed_fields);
93 Py_ssize_t len, min_len, max_len, i, n_unnamed_fields; in structseq_new_impl() local
112 n_unnamed_fields = UNNAMED_FIELDS_TP(type); in structseq_new_impl()
153 dict, type->tp_members[i-n_unnamed_fields].name))) { in structseq_new_impl()
248 Py_ssize_t n_fields, n_visible_fields, n_unnamed_fields, i; in structseq_reduce() local
252 n_unnamed_fields = UNNAMED_FIELDS(self); in structseq_reduce()
267 const char *n = Py_TYPE(self)->tp_members[i-n_unnamed_fields].name; in structseq_reduce()
/external/python/cpython2/Objects/
Dstructseq.c149 Py_ssize_t len, min_len, max_len, i, n_unnamed_fields; in structseq_new() local
173 n_unnamed_fields = UNNAMED_FIELDS_TP(type); in structseq_new()
214 dict, type->tp_members[i-n_unnamed_fields].name))) { in structseq_new()
377 Py_ssize_t n_fields, n_visible_fields, n_unnamed_fields; in structseq_reduce() local
382 n_unnamed_fields = UNNAMED_FIELDS(self); in structseq_reduce()
400 char *n = Py_TYPE(self)->tp_members[i-n_unnamed_fields].name; in structseq_reduce()
/external/python/cpython2/Lib/test/
Dtest_structseq.py73 self.assertEqual(t.n_fields, t.n_sequence_fields+t.n_unnamed_fields)
/external/python/cpython3/Lib/test/
Dtest_structseq.py81 self.assertEqual(t.n_unnamed_fields, 0)