bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778)
https://bugs.python.org/issue37593
(cherry picked from commit cd6e83b4810549c308ab2d7315dbab526e35ccf6)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
diff --git a/Python/ast.c b/Python/ast.c
index 317a42b..f6c2049 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1688,7 +1688,7 @@
return NULL;
}
}
- return arguments(posargs, posonlyargs, vararg, kwonlyargs, kwdefaults, kwarg, posdefaults, c->c_arena);
+ return arguments(posonlyargs, posargs, vararg, kwonlyargs, kwdefaults, kwarg, posdefaults, c->c_arena);
}
static expr_ty