Home
last modified time | relevance | path

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

123

/third_party/python/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()
/third_party/python/Objects/stringlib/
Dsplit.h25 if (PyList_Append(list, sub)) { \
40 if (PyList_Append(list, sub)) { \
376 if (PyList_Append(list, str_obj)) in STRINGLIB()
/third_party/python/Modules/
Dgrpmodule.c70 if (x == NULL || PyList_Append(w, x) != 0) { in mkgrent()
278 if (v == NULL || PyList_Append(d, v) != 0) { in grp_getgrall_impl()
D_sre.c856 status = PyList_Append(list, item); in _sre_SRE_Pattern_findall_impl()
997 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
1007 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
1025 status = PyList_Append(list, item); in _sre_SRE_Pattern_split_impl()
1139 status = PyList_Append(list, item); in pattern_subx()
1163 status = PyList_Append(list, item); in pattern_subx()
1181 status = PyList_Append(list, item); in pattern_subx()
1337 if (PyList_Append(flag_items, item) < 0) { in pattern_repr()
1350 if (PyList_Append(flag_items, item) < 0) { in pattern_repr()
Dgcmodule.c352 if (PyList_Append(py_list, op)) { in append_objects()
944 if (PyList_Append(gcstate->garbage, op) < 0) { in handle_legacy_finalizers()
1009 if (PyList_Append(gcstate->garbage, op) < 0) { in delete_garbage()
1676 if (PyList_Append(resultlist, obj) < 0) in gc_referrers_for()
1713 return PyList_Append(list, obj) < 0; in referentsvisit()
1848 if (PyList_Append(result, dict)) { in gc_get_stats_impl()
Dspwdmodule.c186 if (v == NULL || PyList_Append(d, v) != 0) { in spwd_getspall_impl()
Dpwdmodule.c302 if (v == NULL || PyList_Append(d, v) != 0) { in pwd_getpwall_impl()
D_lsprof.c527 err = PyList_Append(collect->sublist, sinfo); in statsForSubEntry()
567 err = PyList_Append(collect->list, info); in statsForEntry()
D_queuemodule.c123 if (PyList_Append(self->lst, item) < 0) in _queue_SimpleQueue_put_impl()
Dnismodule.c457 if (!str || PyList_Append(list, str) < 0) in nis_maps()
D_heapqmodule.c129 if (PyList_Append(heap, item)) in _heapq_heappush_impl()
D_dbmmodule.c254 err = PyList_Append(v, item); in _dbm_dbm_keys_impl()
/third_party/python/Include/
Dlistobject.h34 PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
/third_party/python/Modules/_sqlite/
Dcursor.c220 if (PyList_Append(self->row_cast_map, converter) != 0) { in pysqlite_build_row_cast_map()
466 if (PyList_Append(parameters_list, second_argument) != 0) { in _pysqlite_query_execute()
879 if (PyList_Append(list, row) < 0) { in pysqlite_cursor_fetchmany_impl()
917 if (PyList_Append(list, row) < 0) { in pysqlite_cursor_fetchall_impl()
Drow.c195 if (PyList_Append(list, PyTuple_GET_ITEM(PyTuple_GET_ITEM(self->description, i), 0)) != 0) { in pysqlite_row_keys_impl()
Dconnection.c296 if (PyList_Append(connection->cursors, weakref) != 0) { in pysqlite_connection_register_cursor()
829 if (PyList_Append(new_list, weakref) != 0) { in _pysqlite_drop_unused_statement_references()
860 if (PyList_Append(new_list, weakref) != 0) { in _pysqlite_drop_unused_cursor_references()
1396 if (PyList_Append(self->statements, weakref) != 0) { in pysqlite_connection_call()
/third_party/python/Python/
Dpyarena.c206 int r = PyList_Append(arena->a_objects, obj); in _PyArena_AddPyObject()
Dsymtable.c988 if (PyList_Append(st->st_stack, (PyObject *)ste) < 0) { in symtable_enter_block()
1015 if (PyList_Append(prev->ste_children, (PyObject *)ste) < 0) { in symtable_enter_block()
1090 if (PyList_Append(ste->ste_varnames, mangled) < 0) in symtable_add_def_helper()
1193 res = PyList_Append(st->st_cur->ste_directives, data); in symtable_record_directive()
/third_party/python/Include/internal/
Dpycore_blocks_output_buffer.h234 if (PyList_Append(buffer->list, b) < 0) { in _BlocksOutputBuffer_Grow()
/third_party/python/Modules/_io/
Diobase.c727 if (PyList_Append(result, line) < 0) { in _io__IOBase_readlines_impl()
1000 r = PyList_Append(chunks, data); in _io__RawIOBase_readall_impl()
Dtextio.c1718 if (PyList_Append(self->pending_bytes, b) < 0) { in _io_TextIOWrapper_write_impl()
2007 PyList_Append(chunks, result) < 0) in _io_TextIOWrapper_read_impl()
2016 if (result != NULL && PyList_Append(chunks, result) < 0) in _io_TextIOWrapper_read_impl()
2237 if (PyList_Append(chunks, s) < 0) { in _textiowrapper_readline()
2273 if (PyList_Append(chunks, remaining) < 0) in _textiowrapper_readline()
2279 if (PyList_Append(chunks, line) < 0) in _textiowrapper_readline()
Dbufferedio.c1112 if (PyList_Append(chunks, res) < 0) { in _buffered_readline()
1157 if (PyList_Append(chunks, res) < 0) { in _buffered_readline()
1167 if (res != NULL && PyList_Append(chunks, res) < 0) { in _buffered_readline()
1578 if (PyList_Append(chunks, data) < 0) in _bufferedreader_read_all()
/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc326 PyList_Append(list, s.get()); in Subscript()
337 PyList_Append(list, s.get()); in Subscript()
/third_party/python/Doc/c-api/
Dlist.rst104 .. c:function:: int PyList_Append(PyObject *list, PyObject *item)

123