Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/
Dselectmodule.c89 PyObject* fast_seq = NULL; in seq2set() local
95 fast_seq = PySequence_Fast(seq, "arguments 1-3 must be sequences"); in seq2set()
96 if (!fast_seq) in seq2set()
99 for (i = 0; i < PySequence_Fast_GET_SIZE(fast_seq); i++) { in seq2set()
103 if (!(o = PySequence_Fast_GET_ITEM(fast_seq, i))) in seq2set()
134 Py_DECREF(fast_seq); in seq2set()
139 Py_DECREF(fast_seq); in seq2set()
/external/python/cpython3/Modules/
Dselectmodule.c88 PyObject* fast_seq = NULL; in seq2set() local
94 fast_seq = PySequence_Fast(seq, "arguments 1-3 must be sequences"); in seq2set()
95 if (!fast_seq) in seq2set()
98 for (i = 0; i < PySequence_Fast_GET_SIZE(fast_seq); i++) { in seq2set()
102 if (!(o = PySequence_Fast_GET_ITEM(fast_seq, i))) in seq2set()
133 Py_DECREF(fast_seq); in seq2set()
138 Py_DECREF(fast_seq); in seq2set()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe_src.cc2058 tensorflow::Safe_PyObjectPtr fast_seq( local
2060 PyObject* result = PyTuple_New(PySequence_Fast_GET_SIZE(fast_seq.get()));
2061 for (int i = 0; i < PySequence_Fast_GET_SIZE(fast_seq.get()); i++) {
2066 item = PySequence_Fast_GET_ITEM(fast_seq.get(), i);