[issue25587] Useless addition in PyTuple_New

2015-11-09 Thread STINNER Victor
STINNER Victor added the comment: The line "nbytes += " was removed 5 years ago by the changeset 7be8129ee0fd. It's maybe time to update your Python version? :-) Only Python < 2.7 has the line, it was removed before Python 2.7.0 was tagged. -- nosy: +haypo resolution: -> fixed status:

[issue25587] Useless addition in PyTuple_New

2015-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no such code in current sources. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Py

[issue25587] Useless addition in PyTuple_New

2015-11-08 Thread Jim Nasby
New submission from Jim Nasby: In PyTuple_New, if the new tuple won't go on the free_list: /* Check for overflow */ if (nbytes / sizeof(PyObject *) != (size_t)size || (nbytes > PY_SSIZE_T_MAX - sizeof(PyTupleObject) - sizeof(PyObject *)))