merge 3.3 (#20588) · pythoncapi/cpython@42ec031 · GitHub
Skip to content

Commit 42ec031

Browse files
committed
merge 3.3 (python#20588)
2 parents 04e2428 + c2f665e commit 42ec031

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions

Parser/asdl_c.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,10 +1203,14 @@ class PartingShots(StaticVisitor):
12031203
mod_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())

Python/Python-ast.c

Lines changed: 6 additions & 2 deletions

0 commit comments

Comments
 (0)