Home
last modified time | relevance | path

Searched refs:PyList_New (Results 1 - 25 of 83) sorted by relevance

1234

/third_party/python/Objects/stringlib/
H A Dsplit.h59 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); in split_whitespace()
108 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); in split_char()
160 list = PyList_New(PREALLOC_SIZE(maxcount)); in split()
198 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); in rsplit_whitespace()
249 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); in rsplit_char()
302 list = PyList_New(PREALLOC_SIZE(maxcount)); in rsplit()
350 PyObject *list = PyList_New(0); in splitlines()
/third_party/python/Objects/
H A Daccu.c22 acc->small = PyList_New(0); in _PyAccu_Init()
36 acc->large = PyList_New(0); in flush_accumulator()
H A Dnamespaceobject.c84 pairs = PyList_New(0); in namespace_repr()
H A Dlistobject.c155 PyList_New(Py_ssize_t size) in PyList_New() function
167 // PyList_New() must not be called after _PyList_Fini() in PyList_New()
204 PyListObject *op = (PyListObject *) PyList_New(0); in list_new_prealloc()
476 return PyList_New(0); in list_slice()
532 return PyList_New(0); in list_concat()
568 return PyList_New(0); in list_repeat()
2901 return PyList_New(0); in list_subscript()
3482 list = PyList_New(0); in listiter_reduce_general()
/third_party/python/Modules/
H A D_weakref.c97 result = PyList_New(count); in _weakref_getweakrefs()
109 result = PyList_New(0); in _weakref_getweakrefs()
H A Dgrpmodule.c64 if ((w = PyList_New(0)) == NULL) { in mkgrent()
273 if ((d = PyList_New(0)) == NULL) in grp_getgrall_impl()
H A Dspwdmodule.c181 if ((d = PyList_New(0)) == NULL) in spwd_getspall_impl()
H A D_localemodule.c74 return PyList_New(0); in copy_grouping()
80 result = PyList_New(i+1); in copy_grouping()
H A D_elementtree.c941 children = PyList_New(self->extra ? self->extra->length : 0); in _elementtree_Element___getstate___impl()
1326 out = PyList_New(0); in _elementtree_Element_findall_impl()
1512 return PyList_New(0); in _elementtree_Element_items_impl()
1527 return PyList_New(0); in _elementtree_Element_keys_impl()
1730 return PyList_New(0); in element_subscr()
1739 return PyList_New(0); in element_subscr()
1741 list = PyList_New(slicelen); in element_subscr()
1817 if (!(recycle = PyList_New(slicelen))) { in element_ass_subscr()
1904 recycle = PyList_New(slicelen); in element_ass_subscr()
2366 t->stack = PyList_New(2 in treebuilder_new()
[all...]
H A Dgcmodule.c164 gcstate->garbage = PyList_New(0); in _PyGC_Init()
169 gcstate->callbacks = PyList_New(0); in _PyGC_Init()
1681 PyObject *result = PyList_New(0); in gc_get_referrers()
1714 PyObject *result = PyList_New(0); in gc_get_referents()
1760 result = PyList_New(0); in gc_get_objects_impl()
1821 PyObject *result = PyList_New(0); in gc_get_stats_impl()
H A Dpwdmodule.c295 if ((d = PyList_New(0)) == NULL) in pwd_getpwall_impl()
H A Dtermios.c97 PyObject *cc = PyList_New(NCCS); in termios_tcgetattr_impl()
126 if (!(v = PyList_New(7))) in termios_tcgetattr_impl()
H A D_lsprof.c548 collect->sublist = PyList_New(0); in statsForEntry()
625 collect.list = PyList_New(0); in _lsprof_Profiler_getstats_impl()
H A Dselectmodule.c194 list = PyList_New(count); in set2list()
687 result_list = PyList_New(poll_result); in select_poll_poll_impl()
997 result_list = PyList_New(poll_result); in select_devpoll_poll_impl()
1623 elist = PyList_New(nfds); in select_epoll_poll_impl()
2231 result = PyList_New(gotevents); in select_kqueue_control_impl()
H A D_queuemodule.c91 self->lst = PyList_New(0); in simplequeue_new_impl()
/third_party/python/Include/internal/
H A Dpycore_blocks_output_buffer.h126 buffer->list = PyList_New(1); in _BlocksOutputBuffer_InitAndGrow()
167 buffer->list = PyList_New(1); in _BlocksOutputBuffer_InitWithSize()
/third_party/python/Include/
H A Dlistobject.h28 PyAPI_FUNC(PyObject *) PyList_New(Py_ssize_t size);
/third_party/python/Python/
H A Dpyarena.c141 arena->a_objects = PyList_New(0); in _PyArena_New()
H A Dsysmodule.c439 interp->audit_hooks = PyList_New(0); in sys_addaudithook_impl()
2046 PyObject *list = PyList_New(0); in list_builtin_module_names()
2240 warnoptions = PyList_New(0); in get_warnoptions()
2998 SET_SYS("meta_path", PyList_New(0)); in _PySys_InitCore()
3000 SET_SYS("path_hooks", PyList_New(0)); in _PySys_InitCore()
3262 v = PyList_New(n); in makepathobject()
3298 PyObject *list = PyList_New(argc); in make_sys_argv()
H A Dmarshal.c516 PyObject *pairs = PyList_New(n); in w_complex_object()
1247 v = PyList_New(n); in r_object()
1618 rf.refs = PyList_New(0); in PyMarshal_ReadObjectFromFile()
1639 rf.refs = PyList_New(0); in PyMarshal_ReadObjectFromString()
1771 if ((rf.refs = PyList_New(0)) != NULL) { in marshal_load()
1830 if ((rf.refs = PyList_New(0)) == NULL) in marshal_loads_impl()
/third_party/protobuf/python/google/protobuf/pyext/
H A Drepeated_composite_container.cc261 return PyList_New(0); in Subscript()
263 result = PyList_New(slicelength); in Subscript()
/third_party/python/Modules/_io/
H A Diobase.c685 result = PyList_New(0); in _io__IOBase_readlines_impl()
952 PyObject *chunks = PyList_New(0); in _io__RawIOBase_readall_impl()
/third_party/python/Modules/_sqlite/
H A Dcursor.c225 Py_XSETREF(self->row_cast_map, PyList_New(0)); in pysqlite_build_row_cast_map()
808 parameters_list = PyList_New(0); in _pysqlite_query_execute()
1189 list = PyList_New(0); in pysqlite_cursor_fetchmany_impl()
1227 list = PyList_New(0); in pysqlite_cursor_fetchall_impl()
H A Drow.c191 list = PyList_New(0); in pysqlite_row_keys_impl()
/third_party/python/Modules/_ssl/
H A Dcert.c51 result = PyList_New(len); in _PySSL_CertificateFromX509Stack()

Completed in 34 milliseconds

1234