Home
last modified time | relevance | path

Searched refs:PyList_New (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/selinux/libselinux/src/
Dselinuxswig_python.i67 PyObject* list = PyList_New(*$2);
101 plist = PyList_New(len);
106 plist = PyList_New(0);
118 plist = PyList_New(result);
123 plist = PyList_New(0);
/third_party/python/Objects/stringlib/
Dsplit.h59 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); in STRINGLIB()
108 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); in STRINGLIB()
160 list = PyList_New(PREALLOC_SIZE(maxcount)); in STRINGLIB()
198 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); in STRINGLIB()
249 PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); in STRINGLIB()
302 list = PyList_New(PREALLOC_SIZE(maxcount)); in STRINGLIB()
350 PyObject *list = PyList_New(0); in STRINGLIB()
/third_party/python/Objects/
Daccu.c22 acc->small = PyList_New(0); in _PyAccu_Init()
36 acc->large = PyList_New(0); in flush_accumulator()
Dnamespaceobject.c83 pairs = PyList_New(0); in namespace_repr()
/third_party/libxml2/python/
Dtypes.c551 ret = PyList_New(0); in libxml_xmlXPathObjectPtrWrap()
561 ret = PyList_New(len); in libxml_xmlXPathObjectPtrWrap()
576 ret = PyList_New(0); in libxml_xmlXPathObjectPtrWrap()
581 ret = PyList_New(obj->nodesetval->nodeNr); in libxml_xmlXPathObjectPtrWrap()
634 list = PyList_New(1); in libxml_xmlXPathObjectPtrWrap()
652 list = PyList_New(2); in libxml_xmlXPathObjectPtrWrap()
685 list = PyList_New(set->locNr); in libxml_xmlXPathObjectPtrWrap()
/third_party/python/Modules/
D_weakref.c92 result = PyList_New(count); in weakref_getweakrefs()
104 result = PyList_New(0); in weakref_getweakrefs()
Dgrpmodule.c64 if ((w = PyList_New(0)) == NULL) { in mkgrent()
273 if ((d = PyList_New(0)) == NULL) in grp_getgrall_impl()
Dgcmodule.c168 gcstate->garbage = PyList_New(0); in _PyGC_Init()
173 gcstate->callbacks = PyList_New(0); in _PyGC_Init()
1694 PyObject *result = PyList_New(0); in gc_get_referrers()
1727 PyObject *result = PyList_New(0); in gc_get_referents()
1773 result = PyList_New(0); in gc_get_objects_impl()
1834 PyObject *result = PyList_New(0); in gc_get_stats_impl()
Dspwdmodule.c181 if ((d = PyList_New(0)) == NULL) in spwd_getspall_impl()
D_elementtree.c953 children = PyList_New(self->extra ? self->extra->length : 0); in _elementtree_Element___getstate___impl()
1338 out = PyList_New(0); in _elementtree_Element_findall_impl()
1524 return PyList_New(0); in _elementtree_Element_items_impl()
1539 return PyList_New(0); in _elementtree_Element_keys_impl()
1742 return PyList_New(0); in element_subscr()
1751 return PyList_New(0); in element_subscr()
1753 list = PyList_New(slicelen); in element_subscr()
1829 if (!(recycle = PyList_New(slicelen))) { in element_ass_subscr()
1916 recycle = PyList_New(slicelen); in element_ass_subscr()
2378 t->stack = PyList_New(20); in treebuilder_new()
[all …]
Dtermios.c92 PyObject *cc = PyList_New(NCCS); in termios_tcgetattr_impl()
121 if (!(v = PyList_New(7))) in termios_tcgetattr_impl()
D_localemodule.c74 return PyList_New(0); in copy_grouping()
80 result = PyList_New(i+1); in copy_grouping()
Dselectmodule.c184 list = PyList_New(count); in set2list()
669 result_list = PyList_New(poll_result); in select_poll_poll_impl()
976 result_list = PyList_New(poll_result); in select_devpoll_poll_impl()
1602 elist = PyList_New(nfds); in select_epoll_poll_impl()
2209 result = PyList_New(gotevents); in select_kqueue_control_impl()
/third_party/python/Include/internal/
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/
Dlistobject.h28 PyAPI_FUNC(PyObject *) PyList_New(Py_ssize_t size);
/third_party/python/Doc/c-api/
Dabstract.rst15 initialized, such as a list object that has been created by :c:func:`PyList_New`,
/third_party/python/Modules/_sqlite/
Dcursor.c165 Py_XSETREF(self->row_cast_map, PyList_New(0)); in pysqlite_build_row_cast_map()
453 parameters_list = PyList_New(0); in _pysqlite_query_execute()
873 list = PyList_New(0); in pysqlite_cursor_fetchmany_impl()
911 list = PyList_New(0); in pysqlite_cursor_fetchall_impl()
Drow.c188 list = PyList_New(0); in pysqlite_row_keys_impl()
/third_party/boost/libs/python/src/
Dlist.cpp21 : object(detail::new_reference(PyList_New(0))) in list_base()
/third_party/python/Python/
Dpyarena.c141 arena->a_objects = PyList_New(0); in _PyArena_New()
Dsysmodule.c460 interp->audit_hooks = PyList_New(0); in sys_addaudithook_impl()
2037 PyObject *list = PyList_New(0); in list_builtin_module_names()
2231 warnoptions = PyList_New(0); in get_warnoptions()
2864 SET_SYS("meta_path", PyList_New(0)); in _PySys_InitCore()
2866 SET_SYS("path_hooks", PyList_New(0)); in _PySys_InitCore()
3102 v = PyList_New(n); in makepathobject()
3138 PyObject *list = PyList_New(argc); in make_sys_argv()
Dmarshal.c1196 v = PyList_New(n); in r_object()
1538 rf.refs = PyList_New(0); in PyMarshal_ReadObjectFromFile()
1559 rf.refs = PyList_New(0); in PyMarshal_ReadObjectFromString()
1693 if ((rf.refs = PyList_New(0)) != NULL) { in marshal_load()
1752 if ((rf.refs = PyList_New(0)) == NULL) in marshal_loads_impl()
/third_party/python/Modules/_ssl/
Dcert.c51 result = PyList_New(len); in _PySSL_CertificateFromX509Stack()
/third_party/python/Modules/_io/
Diobase.c692 result = PyList_New(0); in _io__IOBase_readlines_impl()
963 PyObject *chunks = PyList_New(0); in _io__RawIOBase_readall_impl()
/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc261 return PyList_New(0); in Subscript()
263 result = PyList_New(slicelength); in Subscript()

1234