Emile is right, in python you can do most of the stuff yourself by hand coding it, or you can use pre-made bullet proof and ready to go modules, here you can go for the csv module that comes part of the standard library.
import csv myfile = open('file', 'r') # open file for reading data = csv.Reader(myfile, delimeter = ',') # let csv module load it print data 2008/7/31 Emile van Sebille <[EMAIL PROTECTED]> > S Python wrote: > >> Hi Everyone, >> I am trying to read a comma-delimitted list ("aaa","bbb","ccc") >> > > In this case, the standard library provides csv for parsing comma separated > files. It's not the same as rolling your own, but it is made specifically > for this use case... > > Emile > > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor >
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor