Can someone explain this?  I can't seem to coerce numpy into storing 
large integer values.  I'm sure that I'm just overlooking something 
simple...


 >>> import numpy
 >>> a='1'*300
 >>> type(a)
<type 'str'>
 >>> b=int(a)
 >>> type(b)
<type 'long'>
 >>> c=numpy.empty((2,2),long)
 >>> c[:]=b
Traceback (most recent call last):
   File "<pyshell#15>", line 1, in <module>
     c[:]=b
OverflowError: long too big to convert
 >>>


Thanks,

-Mark
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to