Serhiy Storchaka added the comment: An overflow in n * sizeof(Py_ssize_t) is not possible because n is the length of already allocated array of pointers.
+ with self.assertRaises(OverflowError): + permutations("A", 2**30) The test needs 4GiB. May be use 2**29? + with self.assertRaises(OverflowError): + permutations("A", 2, 2**30) permutations() takes at most 2 arguments. ---------- nosy: +serhiy.storchaka status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23363> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com