Home
last modified time | relevance | path

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

12345

/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()
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()
Dpwdmodule.c168 if (v == NULL || PyList_Append(d, v) != 0) {
Dfmmodule.c207 err = PyList_Append(fontlist, v); in clientproc()
/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()
/external/python/cpython3/Modules/
Dgrpmodule.c56 if (x == NULL || PyList_Append(w, x) != 0) { in mkgrent()
189 if (v == NULL || PyList_Append(d, v) != 0) { in grp_getgrall_impl()
Dgcmodule.c222 if (PyList_Append(py_list, op)) { in append_objects()
666 if (PyList_Append(_PyRuntime.gc.garbage, op) < 0) in handle_legacy_finalizers()
756 PyList_Append(_PyRuntime.gc.garbage, op); in delete_garbage()
1254 if (PyList_Append(resultlist, obj) < 0) in gc_referrers_for()
1285 return PyList_Append(list, obj) < 0; in referentsvisit()
1377 if (PyList_Append(result, dict)) { in gc_get_stats_impl()
D_sre.c809 status = PyList_Append(list, item); in _sre_SRE_Pattern_findall_impl()
941 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
951 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
969 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
1080 status = PyList_Append(list, item); in pattern_subx()
1104 status = PyList_Append(list, item); in pattern_subx()
1122 status = PyList_Append(list, item); in pattern_subx()
1269 if (PyList_Append(flag_items, item) < 0) { in pattern_repr()
1282 if (PyList_Append(flag_items, item) < 0) { in pattern_repr()
Dspwdmodule.c176 if (v == NULL || PyList_Append(d, v) != 0) { in spwd_getspall_impl()
Dpwdmodule.c195 if (v == NULL || PyList_Append(d, v) != 0) { in pwd_getpwall_impl()
/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/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/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/cpython2/Include/
Dlistobject.h52 PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc118 if (PyList_Append(self->child_messages, py_cmsg.get()) < 0) { in UpdateChildMessages()
155 if (PyList_Append(self->child_messages, py_cmsg) < 0) { in AddToAttached()
173 if (PyList_Append(self->child_messages, py_cmsg) < 0) { in AddToReleased()
/external/python/cpython3/Modules/_sqlite/
Dcursor.c188 if (PyList_Append(self->row_cast_map, converter) != 0) { in pysqlite_build_row_cast_map()
450 if (PyList_Append(parameters_list, second_argument) != 0) { in _pysqlite_query_execute()
836 PyList_Append(list, row); in pysqlite_cursor_fetchmany()
871 PyList_Append(list, row); in pysqlite_cursor_fetchall()
/external/python/cpython3/Include/
Dlistobject.h57 PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
/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()
Dconnection.c313 if (PyList_Append(connection->cursors, weakref) != 0) { in pysqlite_connection_register_cursor()
820 if (PyList_Append(new_list, weakref) != 0) { in _pysqlite_drop_unused_statement_references()
851 if (PyList_Append(new_list, weakref) != 0) { in _pysqlite_drop_unused_cursor_references()
1242 if (PyList_Append(self->statements, weakref) != 0) { in pysqlite_connection_call()
/external/python/cpython3/Python/
Dpyarena.c205 int r = PyList_Append(arena->a_objects, obj); in PyArena_AddPyObject()

12345