gh-126303: Fix pickling and copying of os.sched_param objects (GH-126336)

This commit is contained in:
Serhiy Storchaka 2024-11-05 08:23:17 +02:00 committed by GitHub
parent d960226547
commit d3840503b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 46 additions and 0 deletions

View file

@ -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