Searched refs:reduce_value (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Modules/ |
D | _pickle.c | 2215 PyObject *reduce_value = NULL; in save_bytes() local 2219 reduce_value = Py_BuildValue("(O())", (PyObject*)&PyBytes_Type); in save_bytes() 2231 reduce_value = Py_BuildValue("(O(OO))", in save_bytes() 2237 if (reduce_value == NULL) in save_bytes() 2241 status = save_reduce(self, reduce_value, obj); in save_bytes() 2242 Py_DECREF(reduce_value); in save_bytes() 3093 PyObject *reduce_value; in save_set() local 3100 reduce_value = Py_BuildValue("(O(O))", (PyObject*)&PySet_Type, items); in save_set() 3102 if (reduce_value == NULL) { in save_set() 3106 status = save_reduce(self, reduce_value, obj); in save_set() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_descr.py | 4842 reduce_value = obj.__reduce_ex__(proto) 4844 self.assertEqual(reduce_value[0], copyreg.__newobj_ex__) 4845 self.assertEqual(reduce_value[1], (type(obj), args, kwargs)) 4847 self.assertEqual(reduce_value[0], copyreg.__newobj__) 4848 self.assertEqual(reduce_value[1], (type(obj),) + args) 4849 self.assertEqual(reduce_value[2], state) 4851 self.assertListEqual(list(reduce_value[3]), listitems) 4853 self.assertIsNone(reduce_value[3]) 4855 self.assertDictEqual(dict(reduce_value[4]), dictitems) 4857 self.assertIsNone(reduce_value[4]) [all …]
|