"coffeebug" <[EMAIL PROTECTED]> writes:
> I cannot import "numarray" and I cannot import "numeric" using python
> 2.3.3
numarray and Numeric are separate modules available at
http://numpy.sourceforge.net/
If you're doing anything numerical in Python, you'll want them :-)
--
|>|\/|<
/-
[EMAIL PROTECTED] writes:
> Hello,
> What's the problem with this code? I get the following error message:
>
> File "test.py", line 26, in test
> print tbl[wi][bi]
> IndexError: index must be either an int or a sequence
>
> ---code snippet
>
> from Numeric import *
> tbl = zeros((32, 16))
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What's the problem with this code? I get the following error message:
2.4 or earlier?
> File "test.py", line 26, in test
>print tbl[wi][bi]
> IndexError: index must be either an int or a sequence
Longs are not ints; message impl
I cannot import "numarray" and I cannot import "numeric" using python
2.3.3
Where would I find an equivalent definition for zeros()?
Anyway, is there supposed to be something that sets the value of
elements of tbl to values other than zero? Not that the question has
anything to do with Shama's p
Thanks Steve.
There's a problem with Numeric array. I tried with numarray and it
works fine.
-SB
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Hello,
What's the problem with this code? I get the following error message:
File "test.py", line 26, in test
print tbl[wi][bi]
IndexError: index must be either an int or a sequence
---code snippet
from Numeric import *
tbl = zeros((32, 16))
def test():
val = t
The table initializes to a 2 dimensional with zeros.
-SB
--
http://mail.python.org/mailman/listinfo/python-list
I don't know much here...but is there an assumption you're making about
the machine word size to be greather than 24 bits?
Also, more to the point, does the function zeros() instantiate a
two-dimensional table? If so, does it populate the table with any
values? The error looks like tbl[ ][ ] doesn
In function test(),
Read wi and bi as:
wi = val >> 4
bi = val & 0xFL
-SB
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
What's the problem with this code? I get the following error message:
File "test.py", line 26, in test
print tbl[wi][bi]
IndexError: index must be either an int or a sequence
---code snippet
from Numeric import *
tbl = zeros((32, 16))
def test():
val = testme()
wi = crc
10 matches
Mail list logo