Can Python remove double quotes from a string, when reading in text file?
The csv
module (standard library) does it automatically, although the docs isn't very specific about skipinitialspace
>>> import csv>>> with open(name, 'rb') as f:... for row in csv.reader(f, delimiter=' ', skipinitialspace=True):... print '|'.join(row)5.6|4.5|6.8|6.55.4|8.3|1.2|9.3