Searched refs:dictitems (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython2/Lib/ |
D | pickle.py | 346 listitems=None, dictitems=None, obj=None): argument 421 if dictitems is not None: 422 self._batch_setitems(dictitems)
|
/external/python/cpython2/Modules/ |
D | cPickle.c | 2404 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/ |
D | typeobject.c | 4543 PyObject **dictitems) in _PyObject_GetItemsIter() argument 4545 if (listitems == NULL || dictitems == NULL) { in _PyObject_GetItemsIter() 4561 *dictitems = Py_None; in _PyObject_GetItemsIter() 4562 Py_INCREF(*dictitems); in _PyObject_GetItemsIter() 4573 *dictitems = PyObject_GetIter(items); in _PyObject_GetItemsIter() 4575 if (*dictitems == NULL) { in _PyObject_GetItemsIter() 4581 assert(*listitems != NULL && *dictitems != NULL); in _PyObject_GetItemsIter() 4591 PyObject *newobj, *newargs, *state, *listitems, *dictitems; in reduce_newobj() local 4672 if (_PyObject_GetItemsIter(obj, &listitems, &dictitems) < 0) { in reduce_newobj() 4679 result = PyTuple_Pack(5, newobj, newargs, state, listitems, dictitems); in reduce_newobj() [all …]
|
/external/python/cpython3/Lib/ |
D | pickle.py | 622 dictitems=None, state_setter=None, obj=None): argument 712 if dictitems is not None: 713 self._batch_setitems(dictitems)
|
/external/python/cpython3/Modules/ |
D | _pickle.c | 3946 PyObject *dictitems = Py_None; in save_reduce() local 3965 &callable, &argtup, &state, &listitems, &dictitems, in save_reduce() 3992 if (dictitems == Py_None) in save_reduce() 3993 dictitems = NULL; in save_reduce() 3994 else if (!PyIter_Check(dictitems)) { in save_reduce() 3997 Py_TYPE(dictitems)->tp_name); in save_reduce() 4225 if (dictitems && batch_dict(self, dictitems) < 0) in save_reduce()
|
/external/python/cpython2/Objects/ |
D | typeobject.c | 3316 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/ |
D | test_descr.py | 4990 listitems=None, dictitems=None): argument 5004 if dictitems is not None: 5005 self.assertDictEqual(dict(reduce_value[4]), dictitems) 5134 self._check_reduce(proto, obj, dictitems=dict(obj))
|