diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-28 10:52:05 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-28 10:52:05 +0200 |
commit | 214678e44bf7773c0ed9c3684818354001d8f9ca (patch) | |
tree | 822f4fdac4d8bd11c300b98dcb7b6a701aa37aae /Python/ast.c | |
parent | d070b2ddbb300cb9c25efcef453154fabc99bcde (diff) | |
download | cpython-git-214678e44bf7773c0ed9c3684818354001d8f9ca.tar.gz |
Issue #12844: More than 255 arguments can now be passed to a function.
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/ast.c b/Python/ast.c index 82f4529bf9..e6786d47f9 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -2738,11 +2738,6 @@ ast_for_call(struct compiling *c, const node *n, expr_ty func) return NULL; } - if (nargs + nkeywords + ngens > 255) { - ast_error(c, n, "more than 255 arguments"); - return NULL; - } - args = _Py_asdl_seq_new(nargs + ngens, c->c_arena); if (!args) return NULL; |