Searched refs:reduce_value (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Modules/ |
D | _pickle.c | 2419 PyObject *reduce_value; in save_bytes() local 2423 reduce_value = Py_BuildValue("(O())", (PyObject*)&PyBytes_Type); in save_bytes() 2435 reduce_value = Py_BuildValue("(O(OO))", in save_bytes() 2441 if (reduce_value == NULL) in save_bytes() 2445 status = save_reduce(self, reduce_value, obj); in save_bytes() 2446 Py_DECREF(reduce_value); in save_bytes() 2488 PyObject *reduce_value = NULL; in save_bytearray() local 2492 reduce_value = Py_BuildValue("(O())", in save_bytearray() 2498 reduce_value = Py_BuildValue("(O(O))", in save_bytearray() 2504 if (reduce_value == NULL) in save_bytearray() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_descr.py | 4992 reduce_value = obj.__reduce_ex__(proto) 4994 self.assertEqual(reduce_value[0], copyreg.__newobj_ex__) 4995 self.assertEqual(reduce_value[1], (type(obj), args, kwargs)) 4997 self.assertEqual(reduce_value[0], copyreg.__newobj__) 4998 self.assertEqual(reduce_value[1], (type(obj),) + args) 4999 self.assertEqual(reduce_value[2], state) 5001 self.assertListEqual(list(reduce_value[3]), listitems) 5003 self.assertIsNone(reduce_value[3]) 5005 self.assertDictEqual(dict(reduce_value[4]), dictitems) 5007 self.assertIsNone(reduce_value[4]) [all …]
|