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 | 5bb8b9134b0bb35a73c76657f41cafa3e4361fcd (patch) | |
tree | 5755343717913be71dc48d94db681d1a21ff31d2 /Python/ceval.c | |
parent | 14d8b9693be235240ab2dcac3b43a4a7c30483bc (diff) | |
download | cpython-git-5bb8b9134b0bb35a73c76657f41cafa3e4361fcd.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/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index fc11117109..f7ee041864 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4100,7 +4100,7 @@ _PyEval_EvalCodeWithName(PyObject *_co, PyObject *globals, PyObject *locals, vars into frame. */ for (i = 0; i < PyTuple_GET_SIZE(co->co_cellvars); ++i) { PyObject *c; - int arg; + Py_ssize_t arg; /* Possibly account for the cell variable being an argument. */ if (co->co_cell2arg != NULL && (arg = co->co_cell2arg[i]) != CO_CELL_NOT_AN_ARG) { |