> for a,b,c,d in line.split() : > [snip] > > The output (when given the data I want to parse) is: > ['0.0','1','0.04','0']
You'll notice that you're not passing any parameters to
split(). By default, it splits on whitespace, and your
input doesn't have any whitespace in it. Thus, you're
actually only getting *one* (not three) elements back. Try
using split(",") instead.
-tkc
--
http://mail.python.org/mailman/listinfo/python-list
