From 92eecc868a4aeab8c3025d6711e6a6e94f494d00 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Thu, 24 Sep 2026 09:21:42 +0900 Subject: [PATCH 1/2] gh-157407: Fix a compilation error on Windows. Caused by #157393. `&PyUnicode_Type` cannot be determined at compile time on Windows. --- Parser/asdl_c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 93baea2130c889c..2b83e97353bbf1f 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -799,7 +799,7 @@ def visitModule(self, mod): FIELD_SEQUENCE = 2, FIELD_BUILTIN = 4, }; - static PyTypeObject *const builtin_types[] = { + PyTypeObject *const builtin_types[] = { ''')) for c_type in builtins: self.emit(f"&{c_type},", 2) From 634afa636362d4d0aba50cfc8f36e4645a653f29 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Thu, 24 Sep 2026 09:48:28 +0900 Subject: [PATCH 2/2] regen-ast --- Python/Python-ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 2038b14811d3c0a..0d89f7e87f1fa2d 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -832,7 +832,7 @@ add_ast_annotations(struct ast_state *state) FIELD_SEQUENCE = 2, FIELD_BUILTIN = 4, }; - static PyTypeObject *const builtin_types[] = { + PyTypeObject *const builtin_types[] = { &PyUnicode_Type, &PyLong_Type, &PyBaseObject_Type,