mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 18:12:43 +00:00
Fix Python 3.10 (PEP-620) incompatibility.
This commit is contained in:
@@ -107,7 +107,7 @@ function::function(
|
||||
PyObject* p = this;
|
||||
if (Py_TYPE(&function_type) == 0)
|
||||
{
|
||||
Py_TYPE(&function_type) = &PyType_Type;
|
||||
Py_SET_TYPE(&function_type, &PyType_Type);
|
||||
::PyType_Ready(&function_type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user