This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Arfrever, pkt, python-dev, serhiy.storchaka
Date 2015-02-02.06:59:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422860369.55.0.577257672854.issue23363@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-02-02 06:59:29serhiy.storchakasetrecipients: + serhiy.storchaka, Arfrever, python-dev, pkt
2015-02-02 06:59:29serhiy.storchakasetmessageid: <1422860369.55.0.577257672854.issue23363@psf.upfronthosting.co.za>
2015-02-02 06:59:29serhiy.storchakalinkissue23363 messages
2015-02-02 06:59:29serhiy.storchakacreate