Mark Dickinson <dicki...@gmail.com> added the comment: > I would rather not do a search and replace every time before reading in > the > data.
There's no need to do a search and replace *before* reading the data: read the data first, then have Python do the replace for you before passing each string to float: >>> t = string.maketrans('d', 'e') >>> '-14.235d+03'.translate(t) '-14.235e+03' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7919> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com