diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 1403143d06b..3218b60f161 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -2948,6 +2948,8 @@ init_ast(void) if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) return; + if (PyModule_AddStringConstant(m, "__version__", "42635") < 0) + return; if(PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; if(PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) return;