Lines Matching refs:reduce_value
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()
3107 Py_DECREF(reduce_value); in save_set()
3158 PyObject *reduce_value; in save_frozenset() local
3165 reduce_value = Py_BuildValue("(O(O))", (PyObject*)&PyFrozenSet_Type, in save_frozenset()
3168 if (reduce_value == NULL) { in save_frozenset()
3172 status = save_reduce(self, reduce_value, obj); in save_frozenset()
3173 Py_DECREF(reduce_value); in save_frozenset()
3452 PyObject *reduce_value = Py_BuildValue("(O(OO))", in save_global() local
3454 if (reduce_value == NULL) in save_global()
3456 status = save_reduce(self, reduce_value, NULL); in save_global()
3457 Py_DECREF(reduce_value); in save_global()
3549 PyObject *reduce_value; in save_singleton_type() local
3552 reduce_value = Py_BuildValue("O(O)", &PyType_Type, singleton); in save_singleton_type()
3553 if (reduce_value == NULL) { in save_singleton_type()
3556 status = save_reduce(self, reduce_value, obj); in save_singleton_type()
3557 Py_DECREF(reduce_value); in save_singleton_type()
3941 PyObject *reduce_value = NULL; in save() local
4066 reduce_value = _Pickle_FastCall(reduce_func, obj); in save()
4093 reduce_value = _Pickle_FastCall(reduce_func, proto); in save()
4102 reduce_value = _PyObject_CallNoArg(reduce_func); in save()
4113 if (reduce_value == NULL) in save()
4116 if (PyUnicode_Check(reduce_value)) { in save()
4117 status = save_global(self, obj, reduce_value); in save()
4121 if (!PyTuple_Check(reduce_value)) { in save()
4128 status = save_reduce(self, reduce_value, obj); in save()
4138 Py_XDECREF(reduce_value); in save()
4464 PyObject *reduce_value, *dict_args; in _pickle_PicklerMemoProxy___reduce___impl() local
4469 reduce_value = PyTuple_New(2); in _pickle_PicklerMemoProxy___reduce___impl()
4470 if (reduce_value == NULL) { in _pickle_PicklerMemoProxy___reduce___impl()
4477 Py_DECREF(reduce_value); in _pickle_PicklerMemoProxy___reduce___impl()
4482 PyTuple_SET_ITEM(reduce_value, 0, (PyObject *)&PyDict_Type); in _pickle_PicklerMemoProxy___reduce___impl()
4483 PyTuple_SET_ITEM(reduce_value, 1, dict_args); in _pickle_PicklerMemoProxy___reduce___impl()
4484 return reduce_value; in _pickle_PicklerMemoProxy___reduce___impl()
6897 PyObject *reduce_value; in _pickle_UnpicklerMemoProxy___reduce___impl() local
6903 reduce_value = PyTuple_New(2); in _pickle_UnpicklerMemoProxy___reduce___impl()
6904 if (reduce_value == NULL) { in _pickle_UnpicklerMemoProxy___reduce___impl()
6911 Py_DECREF(reduce_value); in _pickle_UnpicklerMemoProxy___reduce___impl()
6916 PyTuple_SET_ITEM(reduce_value, 0, (PyObject *)&PyDict_Type); in _pickle_UnpicklerMemoProxy___reduce___impl()
6917 PyTuple_SET_ITEM(reduce_value, 1, constructor_args); in _pickle_UnpicklerMemoProxy___reduce___impl()
6918 return reduce_value; in _pickle_UnpicklerMemoProxy___reduce___impl()