New submission from Sergey Fedoseev <fedoseev.ser...@gmail.com>:
Max size of list and tuples is limited by PY_SSIZE_T_MAX / sizeof(PyObject*), so the sum of any two list/tuples sizes always <= PY_SSIZE_T_MAX if sizeof(PyObject*) > 1, which seems true for all supported (existing?) platforms. It means that overflow checks in app1, ins1, list_concat and tupleconcat are redundant and can be safely removed. ---------- components: Interpreter Core messages: 323491 nosy: sir-sigurd priority: normal severity: normal status: open title: remove redundant overflow checks in tuple and list implementations type: enhancement versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34397> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com