Message314475
Hi!
This is broken for tuples (but not for lists, as in the example here) in 2.7.14 for me. Should we reopen this issue and fix it better?
[builder@localhost ~]$ python
Python 2.7.14 (default, Nov 7 2017, 17:07:17)
[GCC 6.3.1 20170118 (ALT 6.3.1-alt2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> x = [0] * 2**20
>>> x *= 2**20
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
MemoryError
>>> x = [0,0,0,0,0,0] * 2**20
>>> x *= 2**20
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
MemoryError
>>> x = ('a', 'b')
>>> x = ('a', 'b') * 2**20
>>> x *= 2**20
Segmentation fault
[builder@localhost ~]$ python --version
Python 2.7.14
[builder@localhost ~]$ python
Python 2.7.14 (default, Nov 7 2017, 17:07:17)
[GCC 6.3.1 20170118 (ALT 6.3.1-alt2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxsize
2147483647
>>> sys.maxint
2147483647
>>>
[builder@localhost ~]$ python RPM/BUILD/Python-2.7.14/Lib/test/test_tuple.py
test_addmul (__main__.TupleTest) ... ok
test_bigrepeat (__main__.TupleTest) ... Segmentation fault
[builder@localhost ~]$ |
|
Date |
User |
Action |
Args |
2018-03-26 19:16:07 | imz | set | recipients:
+ imz, gvanrossum, nnorwitz, jorend, agthorr, christian.heimes |
2018-03-26 19:16:07 | imz | set | messageid: <1522091767.31.0.467229070634.issue1704621@psf.upfronthosting.co.za> |
2018-03-26 19:16:07 | imz | link | issue1704621 messages |
2018-03-26 19:16:07 | imz | create | |
|