diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-11-05 06:23:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 06:23:17 (GMT) |
commit | d3840503b0f590ee574fbdf3c96626ff8b3c45f6 (patch) | |
tree | 92bc28b3086033c2a9fea91121d5a8cf83f1f04a /Objects | |
parent | d9602265479bcd96dc377d92a34556baf34ac3cd (diff) | |
download | cpython-d3840503b0f590ee574fbdf3c96626ff8b3c45f6.zip cpython-d3840503b0f590ee574fbdf3c96626ff8b3c45f6.tar.gz cpython-d3840503b0f590ee574fbdf3c96626ff8b3c45f6.tar.bz2 |
gh-126303: Fix pickling and copying of os.sched_param objects (GH-126336)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 4022531..88db29e 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -7656,6 +7656,12 @@ type_add_method(PyTypeObject *type, PyMethodDef *meth) return 0; } +int +_PyType_AddMethod(PyTypeObject *type, PyMethodDef *meth) +{ + return type_add_method(type, meth); +} + /* Add the methods from tp_methods to the __dict__ in a type object */ static int |