[issue23364] integer overflow in itertools.product

2015-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 887526ebb013 by Serhiy Storchaka in branch '2.7': Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests. https://hg.python.org/cpython/rev/887526ebb013 -- ___ Python tracker

[issue23364] integer overflow in itertools.product

2015-02-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- versions: +Python 2.7, Python 3.3, Python 3.5 ___ Python tracker ___ ___ Python-bu

[issue23364] integer overflow in itertools.product

2015-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23364] integer overflow in itertools.product

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 356ed025dbae by Serhiy Storchaka in branch '3.3': Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests. https://hg.python.org/cpython/rev/356ed025dbae New changeset 98c720c3e061 by Serhiy Storchaka in branch '3.4': Issues #23363, #2

[issue23364] integer overflow in itertools.product

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And this means that this test (and other tests with the bigaddrspacetest decorator) is not executed on any of our buildbots. It skipped on 64-bit builders and 32-bit builders ran tests without the -M2G option. --

[issue23364] integer overflow in itertools.product

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, and actually the test is wrong. It fails on 32-bit with -M2G. Should be: -with self.assertRaises(OverflowError): -product(["a"]*(2**16), repeat=2**16) +with self.assertRaises((OverflowError, MemoryError)): +product(*

[issue23364] integer overflow in itertools.product

2015-02-02 Thread paul
paul added the comment: You mean 64bit? On 32 it'll overflow and that's the point. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue23364] integer overflow in itertools.product

2015-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 2**16 * 2**16 * sizeof(Py_ssize_t) = 16GiB -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23364] integer overflow in itertools.product

2015-02-01 Thread paul
paul added the comment: Why do you think this test needs 16GiB? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23364] integer overflow in itertools.product

2015-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +with self.assertRaises(OverflowError): +product(["a"]*(2**16), repeat=2**16) The test needs 16GiB. May be use repeat=2**13? -- nosy: +serhiy.storchaka status: closed -> open ___ Python tracker

[issue23364] integer overflow in itertools.product

2015-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7133582b6769 by Benjamin Peterson in branch '3.3': check for overflows in permutations() and product() (closes #23363, closes #23364) https://hg.python.org/cpython/rev/7133582b6769 New changeset 9ae055c3db32 by Benjamin Peterson in branch '3.4': me

[issue23364] integer overflow in itertools.product

2015-02-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23364] integer overflow in itertools.product

2015-02-01 Thread paul
New submission from paul: # Bug # --- # # static PyObject * # product_new(PyTypeObject *type, PyObject *args, PyObject *kwds) # { # ... # 1 nargs = (repeat == 0) ? 0 : PyTuple_GET_SIZE(args); # 2 npools = nargs * repeat; # # 3 indices = PyMem_Malloc(npools * sizeof(Py_ssize_t)); #