File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ Core and Builtins
1313- Issue #19255: The builtins module is restored to initial value before
1414 cleaning other modules. The sys and builtins modules are cleaned last.
1515
16+ - Issue #20588: Make Python-ast.c C89 compliant.
17+
1618- Issue #20437: Fixed 22 potential bugs when deleting objects references.
1719
1820- Issue #20500: Displaying an exception at interpreter shutdown no longer
Original file line number Diff line number Diff line change @@ -1203,10 +1203,14 @@ class PartingShots(StaticVisitor):
12031203mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
12041204{
12051205 mod_ty res;
1206- PyObject *req_type[] = {(PyObject*)Module_type, (PyObject*)Expression_type,
1207- (PyObject*)Interactive_type};
1206+ PyObject *req_type[3];
12081207 char *req_name[] = {"Module", "Expression", "Interactive"};
12091208 int isinstance;
1209+
1210+ req_type[0] = (PyObject*)Module_type;
1211+ req_type[1] = (PyObject*)Expression_type;
1212+ req_type[2] = (PyObject*)Interactive_type;
1213+
12101214 assert(0 <= mode && mode <= 2);
12111215
12121216 if (!init_types())
Original file line number Diff line number Diff line change @@ -7023,10 +7023,14 @@ PyObject* PyAST_mod2obj(mod_ty t)
70237023mod_ty PyAST_obj2mod (PyObject * ast , PyArena * arena , int mode )
70247024{
70257025 mod_ty res ;
7026- PyObject * req_type [] = {(PyObject * )Module_type , (PyObject * )Expression_type ,
7027- (PyObject * )Interactive_type };
7026+ PyObject * req_type [3 ];
70287027 char * req_name [] = {"Module" , "Expression" , "Interactive" };
70297028 int isinstance ;
7029+
7030+ req_type [0 ] = (PyObject * )Module_type ;
7031+ req_type [1 ] = (PyObject * )Expression_type ;
7032+ req_type [2 ] = (PyObject * )Interactive_type ;
7033+
70307034 assert (0 <= mode && mode <= 2 );
70317035
70327036 if (!init_types ())
You can’t perform that action at this time.
0 commit comments