2
0
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:
Stefan Seefeld
2020-11-13 21:17:24 -05:00
parent cd953cff06
commit 500194edb7
6 changed files with 13 additions and 14 deletions

View File

@@ -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);
}