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 <>
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.
Date User Action Args
2015-02-02 06:59:29serhiy.storchakasetrecipients: + serhiy.storchaka, Arfrever, python-dev, pkt
2015-02-02 06:59:29serhiy.storchakasetmessageid: <>
2015-02-02 06:59:29serhiy.storchakalinkissue23363 messages
2015-02-02 06:59:29serhiy.storchakacreate