assigning a sequence to an array

amitsoni.1984 at gmail.com amitsoni.1984 at gmail.com
Wed Nov 8 02:36:18 EST 2006


Hi,
I am using  "A[a,:]=row" in python, where A is a matrix and row is a
sequence. But it gives following error:
-------- error------
    A[a,:]=row
ValueError: setting an array element with a sequence.

Is there a way to change type of sequence to array so that this
situation could be handled

thanks
Amit




More information about the Python-list mailing list