Issue #12844: More than 255 arguments can now be passed to a function.

This commit is contained in:
Serhiy Storchaka 2016-11-28 10:52:05 +02:00
parent d070b2ddbb
commit 214678e44b
4 changed files with 70 additions and 67 deletions

View file

@ -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;