Home
last modified time | relevance | path

Searched refs:listitems (Results 1 – 7 of 7) sorted by relevance

/third_party/PyYAML/lib/yaml/
Drepresenter.py323 function, args, state, listitems, dictitems = reduce
327 if listitems is not None:
328 listitems = list(listitems)
340 if not args and not listitems and not dictitems \
344 if not listitems and not dictitems \
352 if listitems:
353 value['listitems'] = listitems
Dconstructor.py639 listitems = []
646 listitems = value.get('listitems', [])
651 if listitems:
652 instance.extend(listitems)
/third_party/PyYAML/tests/data/
Dconstruct-python-object.data22 - !!python/object/new:test_constructor.MyList { listitems: [~, ~, ~] }
/third_party/python/Objects/
Dtypeobject.c5124 _PyObject_GetItemsIter(PyObject *obj, PyObject **listitems, in _PyObject_GetItemsIter() argument
5127 if (listitems == NULL || dictitems == NULL) { in _PyObject_GetItemsIter()
5133 *listitems = Py_None; in _PyObject_GetItemsIter()
5134 Py_INCREF(*listitems); in _PyObject_GetItemsIter()
5137 *listitems = PyObject_GetIter(obj); in _PyObject_GetItemsIter()
5138 if (*listitems == NULL) in _PyObject_GetItemsIter()
5152 Py_CLEAR(*listitems); in _PyObject_GetItemsIter()
5158 Py_CLEAR(*listitems); in _PyObject_GetItemsIter()
5163 assert(*listitems != NULL && *dictitems != NULL); in _PyObject_GetItemsIter()
5173 PyObject *newobj, *newargs, *state, *listitems, *dictitems; in reduce_newobj() local
[all …]
/third_party/python/Lib/
Dpickle.py621 def save_reduce(self, func, args, state=None, listitems=None, argument
709 if listitems is not None:
710 self._batch_appends(listitems)
/third_party/python/Modules/
D_pickle.c3941 PyObject *listitems = Py_None; in save_reduce() local
3961 &callable, &argtup, &state, &listitems, &dictitems, in save_reduce()
3979 if (listitems == Py_None) in save_reduce()
3980 listitems = NULL; in save_reduce()
3981 else if (!PyIter_Check(listitems)) { in save_reduce()
3984 Py_TYPE(listitems)->tp_name); in save_reduce()
4218 if (listitems && batch_list(self, listitems) < 0) in save_reduce()
/third_party/python/Lib/test/
Dtest_descr.py5054 listitems=None, dictitems=None): argument
5064 if listitems is not None:
5065 self.assertListEqual(list(reduce_value[3]), listitems)
5204 self._check_reduce(proto, obj, listitems=list(obj))