Home
last modified time | relevance | path

Searched refs:listitems (Results 1 - 6 of 6) sorted by relevance

/third_party/PyYAML/lib/yaml/
H A Drepresenter.py299 # (function, args, state, listitems, dictitems)
302 # listitems, and dictitems if they are not None.
323 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']
[all...]
H A Dconstructor.py484 # construct_python_object_apply to add `listitems` to a newly generate
629 # listitems: [ ... listitems ... ]
639 listitems = []
646 listitems = value.get('listitems', [])
651 if listitems:
652 instance.extend(listitems)
/third_party/python/Objects/
H A Dtypeobject.c5227 _PyObject_GetItemsIter(PyObject *obj, PyObject **listitems, in _PyObject_GetItemsIter() argument
5230 if (listitems == NULL || dictitems == NULL) { in _PyObject_GetItemsIter()
5236 *listitems = Py_None; in _PyObject_GetItemsIter()
5237 Py_INCREF(*listitems); in _PyObject_GetItemsIter()
5240 *listitems = PyObject_GetIter(obj); in _PyObject_GetItemsIter()
5241 if (*listitems == NULL) in _PyObject_GetItemsIter()
5252 Py_CLEAR(*listitems); in _PyObject_GetItemsIter()
5258 Py_CLEAR(*listitems); in _PyObject_GetItemsIter()
5263 assert(*listitems != NULL && *dictitems != NULL); in _PyObject_GetItemsIter()
5273 PyObject *newobj, *newargs, *state, *listitems, *dictitem in reduce_newobj() local
[all...]
/third_party/python/Modules/
H A D_pickle.c3962 PyObject *listitems = Py_None; in save_reduce() local
3982 &callable, &argtup, &state, &listitems, &dictitems, in save_reduce()
4000 if (listitems == Py_None) in save_reduce()
4001 listitems = NULL; in save_reduce()
4002 else if (!PyIter_Check(listitems)) { in save_reduce()
4005 Py_TYPE(listitems)->tp_name); in save_reduce()
4234 if (listitems && batch_list(self, listitems) < 0) in save_reduce()
/third_party/python/Lib/
H A Dpickle.py621 def save_reduce(self, func, args, state=None, listitems=None,
709 if listitems is not None:
710 self._batch_appends(listitems)
/third_party/python/Lib/test/
H A Dtest_descr.py5131 listitems=None, dictitems=None):
5141 if listitems is not None:
5142 self.assertListEqual(list(reduce_value[3]), listitems)
5281 self._check_reduce(proto, obj, listitems=list(obj))

Completed in 30 milliseconds