Nicer way of strip and replace?

Paul Rubin http
Tue Oct 11 19:29:28 EDT 2005


Markus Rosenstihl <mrosenstihl at macnews.de> writes:
> indeed, it did it correctly by default:
> 
> read_file = csv.reader(open('2005_08_Rechnung_4963184011.dat', 'r'),
> delimiter="\t")
> for row in read_file:
> 	rechnung.append(row)

Oh cool.  I think you could even say:

   rechnung = list(read_file)

instead of the for loop.



More information about the Python-list mailing list