summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-14 23:49:52 (GMT)
committerGitHub <noreply@github.com>2019-07-14 23:49:52 (GMT)
commitcf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1 (patch)
tree087fb25d3e2aea6ef3bdcc9a8b4eda8637a1b83f /Include
parent3958b7aae8cc7c571a842ff43c1dea1da9abdd9d (diff)
downloadcpython-cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1.zip
cpython-cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1.tar.gz
cpython-cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1.tar.bz2
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>
Diffstat (limited to 'Include')
-rw-r--r--Include/Python-ast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/Python-ast.h b/Include/Python-ast.h
index 6262650..5fe4f2b 100644
--- a/Include/Python-ast.h
+++ b/Include/Python-ast.h
@@ -426,8 +426,8 @@ struct _excepthandler {
};
struct _arguments {
- asdl_seq *args;
asdl_seq *posonlyargs;
+ asdl_seq *args;
arg_ty vararg;
asdl_seq *kwonlyargs;
asdl_seq *kw_defaults;
@@ -687,7 +687,7 @@ excepthandler_ty _Py_ExceptHandler(expr_ty type, identifier name, asdl_seq *
end_lineno, int end_col_offset, PyArena
*arena);
#define arguments(a0, a1, a2, a3, a4, a5, a6, a7) _Py_arguments(a0, a1, a2, a3, a4, a5, a6, a7)
-arguments_ty _Py_arguments(asdl_seq * args, asdl_seq * posonlyargs, arg_ty
+arguments_ty _Py_arguments(asdl_seq * posonlyargs, asdl_seq * args, arg_ty
vararg, asdl_seq * kwonlyargs, asdl_seq *
kw_defaults, arg_ty kwarg, asdl_seq * defaults,
PyArena *arena);