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 mcfrith
Recipients mcfrith
Date 2010-08-06.02:20:51
SpamBayes Score 7.394271e-08
Marked as misclassified No
Message-id <1281061254.05.0.356539300127.issue9526@psf.upfronthosting.co.za>
In-reply-to
Content
The array module does not seem to work for arrays > 2 GB.

>>> import sys, array
>>> sys.maxsize
9223372036854775807
>>> x = array.array('c', ('a' for i in xrange(300000000)))
(seems to work OK)
>>> x = array.array('c', ('a' for i in xrange(3000000000)))
(runs forever: memory usage increases to 2GB and then stops)

I think the cause is: casting to int in arraymodule.c, in array_iter_extend() and array_append().

My uname -a:
Linux c016 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
History
Date User Action Args
2010-08-06 02:20:54mcfrithsetrecipients: + mcfrith
2010-08-06 02:20:54mcfrithsetmessageid: <1281061254.05.0.356539300127.issue9526@psf.upfronthosting.co.za>
2010-08-06 02:20:52mcfrithlinkissue9526 messages
2010-08-06 02:20:51mcfrithcreate