Nicer way of strip and replace?

Paul Rubin http
Tue Oct 11 23:45:46 CEST 2005

Markus Rosenstihl <mrosenstihl at> writes:
> This looks ugly (I htink)  and I wonder if there is a nicer way to
> strip commata and change the comma to a dot already when reading in.
> Or should i do it with a shell script before processing in python?

First of all you should just set your locale to use comma instead
of dot as the numeric decimal, instead of translating commas to dots.

Second, for the field separation, see if you can configure the csv
module to do it for you.

More information about the Python-list mailing list