diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-16 19:19:02 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-16 19:19:02 +0200 |
commit | b738df1cd4bcfdf6e01ea459ca559cd64f0bf6f3 (patch) | |
tree | 723383bf807cc4bf89c6005256d81f0480249240 /Python/ast.c | |
parent | 8bbcff3731565d4f6fc42267e08479e0ea693cb1 (diff) | |
download | cpython-b738df1cd4bcfdf6e01ea459ca559cd64f0bf6f3.tar.gz |
Issue #18896: Python function can now have more than 255 parameters.
collections.namedtuple() now supports tuples with more than 255 elements.
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 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 */ |