Carl wrote:
> I have the following problem 
> 
>     import Numeric
>     dim = 1
>     bits = 32
>     v = Numeric.zeros((dim, bits), 'l')
>     for j in range(bits):
>         v[0][j] = 1L << bits - j - 1
> 
> The problem is the last assignment, which is not valid, since the integer is
> on the right hand side is to large to be assigned to an array element.

Use Numeric.UnsignedInt32 as the data type.

-- 
Robert Kern
[EMAIL PROTECTED]

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to