[Numpy-discussion] Python crashes while printing a huge numpy array (Windows 1.6b2)

josef.pktd at gmail.com josef.pktd at gmail.com
Sat Apr 23 10:01:23 EDT 2011


On Sat, Apr 23, 2011 at 9:41 AM, David Cournapeau <cournape at gmail.com> wrote:
> On Sat, Apr 23, 2011 at 10:33 PM, Till Stensitzki <mail.till at gmx.de> wrote:
>> Hello,
>> due a mistake i found the following bug:
>>
>>
>> import numpy as np
>> x=np.zeros((262144, 262144))
>> print x.shape
>
> Hm, this is a bit weird. The line x = np.zeros... should fail (you
> most likely do not have 512 Gb Ram available on your machine :) ).
> Maybe a check is wrong due to some wrong configuration on windows. Are
> you on windows 32 or 64 bits ?

32 bit python on Windows 7 (64)

I get the correct value error with python 2.6.5 and numpy 1.5.1

but on python 2.5.4 with numpy 1.3.0 I get the crash instead of the ValueError.


Josef

>
> cheers,
>
> David
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



More information about the NumPy-Discussion mailing list