From ed1d1ae207b06ff23524a9ab6081997b8fecd70b Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 28 Nov 2016 10:52:05 +0200 Subject: Issue #12844: More than 255 arguments can now be passed to a function. --- Python/ast.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Python/ast.c') 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; -- cgit v1.2.1 From b738df1cd4bcfdf6e01ea459ca559cd64f0bf6f3 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 16 Dec 2016 19:19:02 +0200 Subject: Issue #18896: Python function can now have more than 255 parameters. collections.namedtuple() now supports tuples with more than 255 elements. --- Python/ast.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index f07bb1685c..5c5738f6ed 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -1411,11 +1411,6 @@ ast_for_arguments(struct compiling *c, const node *n) if (!kwdefaults && nkwonlyargs) return NULL; - if (nposargs + nkwonlyargs > 255) { - ast_error(c, n, "more than 255 arguments"); - return NULL; - } - /* tfpdef: NAME [':' test] vfpdef: NAME */ -- cgit v1.2.1