]> granicus.if.org Git - python/commit
Closes: #556025 seg fault when doing list(xrange(1e9))
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 22 May 2002 23:19:17 +0000 (23:19 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 22 May 2002 23:19:17 +0000 (23:19 +0000)
commitd4e5be53409699d89c358bd16784bad59c37dfa7
treee73ff4030deebb52034b224a1525e3a4e8bba5f0
parent7779b208aedd9622029b20712c918c97a2c67eed
Closes: #556025 seg fault when doing list(xrange(1e9))
A MemoryError is now raised when the list cannot be created.
There is a test, but as the comment says, it really only
works for 32 bit systems.  I don't know how to improve
the test for other systems (ie, 64 bit or systems
where the data size != addressable size,
e.g. 64 bit data, but 48 bit addressable memory)
Lib/test/test_b1.py
Objects/listobject.c