Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/
Dpickle.py346 listitems=None, dictitems=None, obj=None): argument
421 if dictitems is not None:
422 self._batch_setitems(dictitems)
/external/python/cpython2/Modules/
DcPickle.c2404 PyObject *dictitems = Py_None; in save_reduce() local
2426 &dictitems)) in save_reduce()
2448 if (dictitems == Py_None) in save_reduce()
2449 dictitems = NULL; in save_reduce()
2450 else if (!PyIter_Check(dictitems)) { in save_reduce()
2453 "Os", fn, Py_TYPE(dictitems)->tp_name); in save_reduce()
2583 if (dictitems && batch_dict(self, dictitems) < 0) in save_reduce()
/external/python/cpython3/Objects/
Dtypeobject.c4346 PyObject **dictitems) in _PyObject_GetItemsIter() argument
4348 if (listitems == NULL || dictitems == NULL) { in _PyObject_GetItemsIter()
4364 *dictitems = Py_None; in _PyObject_GetItemsIter()
4365 Py_INCREF(*dictitems); in _PyObject_GetItemsIter()
4376 *dictitems = PyObject_GetIter(items); in _PyObject_GetItemsIter()
4378 if (*dictitems == NULL) { in _PyObject_GetItemsIter()
4384 assert(*listitems != NULL && *dictitems != NULL); in _PyObject_GetItemsIter()
4394 PyObject *newobj, *newargs, *state, *listitems, *dictitems; in reduce_newobj() local
4475 if (_PyObject_GetItemsIter(obj, &listitems, &dictitems) < 0) { in reduce_newobj()
4482 result = PyTuple_Pack(5, newobj, newargs, state, listitems, dictitems); in reduce_newobj()
[all …]
/external/python/cpython3/Lib/
Dpickle.py568 dictitems=None, obj=None): argument
658 if dictitems is not None:
659 self._batch_setitems(dictitems)
/external/python/cpython3/Modules/
D_pickle.c3656 PyObject *dictitems = Py_None; in save_reduce() local
3674 &callable, &argtup, &state, &listitems, &dictitems)) in save_reduce()
3700 if (dictitems == Py_None) in save_reduce()
3701 dictitems = NULL; in save_reduce()
3702 else if (!PyIter_Check(dictitems)) { in save_reduce()
3705 Py_TYPE(dictitems)->tp_name); in save_reduce()
3924 if (dictitems && batch_dict(self, dictitems) < 0) in save_reduce()
/external/python/cpython2/Objects/
Dtypeobject.c3316 PyObject *slots = NULL, *listitems = NULL, *dictitems = NULL; in reduce_2() local
3447 dictitems = Py_None; in reduce_2()
3448 Py_INCREF(dictitems); in reduce_2()
3451 dictitems = PyObject_CallMethod(obj, "iteritems", ""); in reduce_2()
3452 if (dictitems == NULL) in reduce_2()
3475 res = PyTuple_Pack(5, newobj, args2, state, listitems, dictitems); in reduce_2()
3485 Py_XDECREF(dictitems); in reduce_2()
/external/python/cpython3/Lib/test/
Dtest_descr.py4840 listitems=None, dictitems=None): argument
4854 if dictitems is not None:
4855 self.assertDictEqual(dict(reduce_value[4]), dictitems)
4984 self._check_reduce(proto, obj, dictitems=dict(obj))