• Home
  • Raw
  • Download

Lines Matching refs:reduce_value

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()
2508 status = save_reduce(self, reduce_value, obj); in save_bytearray()
2509 Py_DECREF(reduce_value); in save_bytearray()
3383 PyObject *reduce_value; in save_set() local
3390 reduce_value = Py_BuildValue("(O(O))", (PyObject*)&PySet_Type, items); in save_set()
3392 if (reduce_value == NULL) { in save_set()
3396 status = save_reduce(self, reduce_value, obj); in save_set()
3397 Py_DECREF(reduce_value); in save_set()
3448 PyObject *reduce_value; in save_frozenset() local
3455 reduce_value = Py_BuildValue("(O(O))", (PyObject*)&PyFrozenSet_Type, in save_frozenset()
3458 if (reduce_value == NULL) { in save_frozenset()
3462 status = save_reduce(self, reduce_value, obj); in save_frozenset()
3463 Py_DECREF(reduce_value); in save_frozenset()
3742 PyObject *reduce_value = Py_BuildValue("(O(OO))", in save_global() local
3744 if (reduce_value == NULL) in save_global()
3746 status = save_reduce(self, reduce_value, NULL); in save_global()
3747 Py_DECREF(reduce_value); in save_global()
3839 PyObject *reduce_value; in save_singleton_type() local
3842 reduce_value = Py_BuildValue("O(O)", &PyType_Type, singleton); in save_singleton_type()
3843 if (reduce_value == NULL) { in save_singleton_type()
3846 status = save_reduce(self, reduce_value, obj); in save_singleton_type()
3847 Py_DECREF(reduce_value); in save_singleton_type()
4263 PyObject *reduce_value = NULL; in save() local
4357 reduce_value = PyObject_CallOneArg(self->reducer_override, obj); in save()
4358 if (reduce_value == NULL) { in save()
4361 if (reduce_value != Py_NotImplemented) { in save()
4364 Py_DECREF(reduce_value); in save()
4365 reduce_value = NULL; in save()
4409 reduce_value = _Pickle_FastCall(reduce_func, obj); in save()
4435 reduce_value = _Pickle_FastCall(reduce_func, proto); in save()
4444 reduce_value = PyObject_CallNoArgs(reduce_func); in save()
4456 if (reduce_value == NULL) in save()
4460 if (PyUnicode_Check(reduce_value)) { in save()
4461 status = save_global(self, obj, reduce_value); in save()
4465 if (!PyTuple_Check(reduce_value)) { in save()
4472 status = save_reduce(self, reduce_value, obj); in save()
4482 Py_XDECREF(reduce_value); in save()
4860 PyObject *reduce_value, *dict_args; in _pickle_PicklerMemoProxy___reduce___impl() local
4865 reduce_value = PyTuple_New(2); in _pickle_PicklerMemoProxy___reduce___impl()
4866 if (reduce_value == NULL) { in _pickle_PicklerMemoProxy___reduce___impl()
4873 Py_DECREF(reduce_value); in _pickle_PicklerMemoProxy___reduce___impl()
4878 PyTuple_SET_ITEM(reduce_value, 0, (PyObject *)&PyDict_Type); in _pickle_PicklerMemoProxy___reduce___impl()
4879 PyTuple_SET_ITEM(reduce_value, 1, dict_args); in _pickle_PicklerMemoProxy___reduce___impl()
4880 return reduce_value; in _pickle_PicklerMemoProxy___reduce___impl()
7414 PyObject *reduce_value; in _pickle_UnpicklerMemoProxy___reduce___impl() local
7420 reduce_value = PyTuple_New(2); in _pickle_UnpicklerMemoProxy___reduce___impl()
7421 if (reduce_value == NULL) { in _pickle_UnpicklerMemoProxy___reduce___impl()
7428 Py_DECREF(reduce_value); in _pickle_UnpicklerMemoProxy___reduce___impl()
7433 PyTuple_SET_ITEM(reduce_value, 0, (PyObject *)&PyDict_Type); in _pickle_UnpicklerMemoProxy___reduce___impl()
7434 PyTuple_SET_ITEM(reduce_value, 1, constructor_args); in _pickle_UnpicklerMemoProxy___reduce___impl()
7435 return reduce_value; in _pickle_UnpicklerMemoProxy___reduce___impl()