diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-10-24 18:14:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-24 18:14:23 (GMT) |
commit | 8cd1dbae32d9303caac3a473d3332f17bc98c921 (patch) | |
tree | 883e8288636eb076d168d2ea57b7a406e2a9d429 /Modules/_randommodule.c | |
parent | 473db47747bb8bc986d88ad81799bcbd88153ac5 (diff) | |
download | cpython-8cd1dbae32d9303caac3a473d3332f17bc98c921.zip cpython-8cd1dbae32d9303caac3a473d3332f17bc98c921.tar.gz cpython-8cd1dbae32d9303caac3a473d3332f17bc98c921.tar.bz2 |
bpo-41052: Fix pickling heap types implemented in C with protocols 0 and 1 (GH-22870)
Diffstat (limited to 'Modules/_randommodule.c')
-rw-r--r-- | Modules/_randommodule.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index b8bc044..d338708 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -536,29 +536,12 @@ random_new(PyTypeObject *type, PyObject *args, PyObject *kwds) } -/*[clinic input] - -_random.Random.__reduce__ - -[clinic start generated code]*/ - -static PyObject * -_random_Random___reduce___impl(RandomObject *self) -/*[clinic end generated code: output=ddea0dcdb60ffd6d input=bd38ec35fd157e0f]*/ -{ - PyErr_Format(PyExc_TypeError, - "cannot pickle %s object", - Py_TYPE(self)->tp_name); - return NULL; -} - static PyMethodDef random_methods[] = { _RANDOM_RANDOM_RANDOM_METHODDEF _RANDOM_RANDOM_SEED_METHODDEF _RANDOM_RANDOM_GETSTATE_METHODDEF _RANDOM_RANDOM_SETSTATE_METHODDEF _RANDOM_RANDOM_GETRANDBITS_METHODDEF - _RANDOM_RANDOM___REDUCE___METHODDEF {NULL, NULL} /* sentinel */ }; |