Mark Dickinson added the comment: Right, sorry. I'm suggesting dropping that second assertion entirely; essentially, we're moving the responsibility for and knowledge about overflow checking into the PyMem_* functions/macros (which is where it belongs), and I don't see a need to check the equivalent condition in list_ass_subscript.
If you do keep the second assertion, you should probably drop the `(size_t)` cast, so that we're not comparing signed with unsigned. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27662> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com