Home
last modified time | relevance | path

Searched refs:PyList_Append (Results 1 – 25 of 122) sorted by relevance

12345

/external/python/cpython3/Objects/
Daccu.c47 ret = PyList_Append(acc->large, joined); in flush_accumulator()
60 if (PyList_Append(acc->small, unicode)) in _PyAccu_Accumulate()
Dnamespaceobject.c110 loop_error = PyList_Append(pairs, item); in namespace_repr()
/external/python/cpython2/Modules/
D_json.c486 if (PyList_Append(chunks, chunk)) { in scanstring_str()
585 if (PyList_Append(chunks, chunk)) { in scanstring_str()
654 if (PyList_Append(chunks, chunk)) { in scanstring_unicode()
752 if (PyList_Append(chunks, chunk)) { in scanstring_unicode()
943 if (PyList_Append(pairs, item) == -1) { in _parse_object_str()
1069 if (PyList_Append(pairs, item) == -1) { in _parse_object_unicode()
1164 if (PyList_Append(rval, val) == -1) in _parse_array_str()
1231 if (PyList_Append(rval, val) == -1) in _parse_array_unicode()
1959 int rval = PyList_Append(lst, stolen); in _steal_list_append()
2082 return PyList_Append(rval, empty_dict); in encoder_listencode_dict()
[all …]
Dgrpmodule.c51 if (x == NULL || PyList_Append(w, x) != 0) { in mkgrent()
146 if (v == NULL || PyList_Append(d, v) != 0) { in grp_getgrall()
D_heapqmodule.c133 if (PyList_Append(heap, item) == -1) in heappush()
321 if (PyList_Append(heap, elem) == -1) { in nlargest()
490 if (PyList_Append(heap, elem) == -1) { in nsmallest()
Dgcmodule.c311 if (PyList_Append(py_list, op)) { in append_objects()
789 if (PyList_Append(garbage, op) < 0) in handle_finalizers()
812 PyList_Append(garbage, op); in delete_garbage()
1236 if (PyList_Append(resultlist, obj) < 0) in gc_referrers_for()
1267 return PyList_Append(list, obj) < 0; in referentsvisit()
Dspwdmodule.c145 if (v == NULL || PyList_Append(d, v) != 0) { in spwd_getspall()
Dpwdmodule.c168 if (v == NULL || PyList_Append(d, v) != 0) {
Dstropmodule.c54 err = PyList_Append(list, item); in split_whitespace()
69 err = PyList_Append(list, item); in split_whitespace()
128 err = PyList_Append(list, item); in strop_splitfields()
143 err = PyList_Append(list, item); in strop_splitfields()
Dfmmodule.c207 err = PyList_Append(fontlist, v); in clientproc()
/external/python/cpython3/Objects/stringlib/
Dsplit.h25 if (PyList_Append(list, sub)) { \
40 if (PyList_Append(list, sub)) { \
376 if (PyList_Append(list, str_obj)) in STRINGLIB()
/external/python/cpython2/Objects/stringlib/
Dsplit.h28 if (PyList_Append(list, sub)) { \
43 if (PyList_Append(list, sub)) { \
379 if (PyList_Append(list, str_obj)) in stringlib_splitlines()
/external/python/cpython2/Python/
Dpeephole.c63 if (PyList_Append(consts, newconst)) { in tuple_of_constants()
176 if (PyList_Append(consts, newconst)) { in fold_binops_on_constants()
229 if (PyList_Append(consts, newconst)) { in fold_unaryops_on_constants()
405 if (PyList_Append(consts, Py_None) == -1) in PyCode_Optimize()
Dpyarena.c208 int r = PyList_Append(arena->a_objects, obj); in PyArena_AddPyObject()
/external/python/cpython3/Include/
Dlistobject.h34 PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
/external/python/cpython3/Modules/
Dgrpmodule.c71 if (x == NULL || PyList_Append(w, x) != 0) { in mkgrent()
295 if (v == NULL || PyList_Append(d, v) != 0) { in grp_getgrall_impl()
D_sre.c802 status = PyList_Append(list, item); in _sre_SRE_Pattern_findall_impl()
934 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
944 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
962 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
1072 status = PyList_Append(list, item); in pattern_subx()
1096 status = PyList_Append(list, item); in pattern_subx()
1114 status = PyList_Append(list, item); in pattern_subx()
1261 if (PyList_Append(flag_items, item) < 0) { in pattern_repr()
1274 if (PyList_Append(flag_items, item) < 0) { in pattern_repr()
Dspwdmodule.c176 if (v == NULL || PyList_Append(d, v) != 0) { in spwd_getspall_impl()
Dgcmodule.c339 if (PyList_Append(py_list, op)) { in append_objects()
931 if (PyList_Append(gcstate->garbage, op) < 0) { in handle_legacy_finalizers()
996 if (PyList_Append(gcstate->garbage, op) < 0) { in delete_garbage()
1661 if (PyList_Append(resultlist, obj) < 0) in gc_referrers_for()
1696 return PyList_Append(list, obj) < 0; in referentsvisit()
1825 if (PyList_Append(result, dict)) { in gc_get_stats_impl()
/external/python/cpython2/Include/
Dlistobject.h52 PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
/external/python/cpython3/Modules/_sqlite/
Dcursor.c186 if (PyList_Append(self->row_cast_map, converter) != 0) { in pysqlite_build_row_cast_map()
430 if (PyList_Append(parameters_list, second_argument) != 0) { in _pysqlite_query_execute()
805 PyList_Append(list, row); in pysqlite_cursor_fetchmany()
832 PyList_Append(list, row); in pysqlite_cursor_fetchall()
Drow.c171 if (PyList_Append(list, PyTuple_GET_ITEM(PyTuple_GET_ITEM(self->description, i), 0)) != 0) { in pysqlite_row_keys()
/external/python/cpython2/Modules/_sqlite/
Dcursor.c226 if (PyList_Append(self->row_cast_map, converter) != 0) { in pysqlite_build_row_cast_map()
514 if (PyList_Append(parameters_list, second_argument) != 0) { in _pysqlite_query_execute()
960 PyList_Append(list, row); in pysqlite_cursor_fetchmany()
995 PyList_Append(list, row); in pysqlite_cursor_fetchall()
/external/python/cpython3/Python/
Dpyarena.c205 int r = PyList_Append(arena->a_objects, obj); in PyArena_AddPyObject()
/external/python/cpython2/Modules/_io/
Diobase.c640 if (PyList_Append(result, line) < 0) { in iobase_readlines()
883 r = PyList_Append(chunks, data); in rawiobase_readall()

12345