Re: using split function

2006-11-07 Thread [EMAIL PROTECTED]
Thanks a lot, I am done with that part. But now I am facing another problem. I am using the code given below 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. --code---

Re: using split function

2006-11-06 Thread Gabriel Genellina
> I have to write a code in python to read a matrix from a text file and > for that i am using following code. But it gives an error saying > "NameError: name 'split' is not defined". Can anyone help me with this. A few hints: - don't use "file" as a name - it shadows the builtin "file" type -

Re: using split function

2006-11-06 Thread ina
[EMAIL PROTECTED] wrote: > Hi, > > I have to write a code in python to read a matrix from a text file and > for that i am using following code. But it gives an error saying > "NameError: name 'split' is not defined". Can anyone help me with this. > -