**Documentation** From https://docs.python.org/3.11/c-api/init.html?highlight=py_getversion#c.Py_GetVersion: > the first three characters are the major and minor version separated by a period. Which is only true for single-digit minor version, this is untrue for Python 3.10+.