summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-05 11:59:09 (GMT)
committerGitHub <noreply@github.com>2022-10-05 11:59:09 (GMT)
commit2b248b0ab58428ae9c6006c02808ae2241293da3 (patch)
treec0406334412719334e2795449adc8e0caf634823 /Objects
parent73e3510bdb2762e371e8545f1a4c68b821fcdcf2 (diff)
downloadcpython-2b248b0ab58428ae9c6006c02808ae2241293da3.zip
cpython-2b248b0ab58428ae9c6006c02808ae2241293da3.tar.gz
cpython-2b248b0ab58428ae9c6006c02808ae2241293da3.tar.bz2
gh-95196: Disable incorrect pickling of the C implemented classmethod descriptors (GH-96383)
(cherry picked from commit 77f0249308de76401bf4f3c6a057789c92f862d1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Objects')
-rw-r--r--Objects/descrobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index c3c541b..73ac14d 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -775,7 +775,7 @@ PyTypeObject PyClassMethodDescr_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- descr_methods, /* tp_methods */
+ 0, /* tp_methods */
descr_members, /* tp_members */
method_getset, /* tp_getset */
0, /* tp_base */