[portland] numarray

Ethan Furman ethan at stoneleaf.us
Sat Mar 13 01:46:02 CET 2010

Ryan Arana wrote:


> On second thought though, the easiest (read: the quickest, and
> not necessarily the best) way to make this work (if print data4 works the
> way I think it does anyway) would be to just change "line" to
> "line.__str__()" in the line.replace line of code. So it will read
> "line.__str__().replace('[', ' ').replace(']', ' ').

Why would you use line.__str__() instead of str(line) ?  For that 
matter, instead of using replace, the OP could do


to chop off the beginning and ending brackets.


More information about the Portland mailing list