Re: Best way to use globally format

2015-05-03 Thread Ben Bacarisse
Cecil Westerhof writes: > I have a file where I used a lot of {0}, {1} and {2}. Most but not all > are changed to {0:.3E}, {1:.3E} and {2:.3E}. But when I want to change > the format I come in dependency hell. > > I could do something like: > format = ':.3E' > fmt0 = '{0' + format + '}

Re: Best way to use globally format

2015-05-03 Thread Peter Otten
Cecil Westerhof wrote: > I have a file where I used a lot of {0}, {1} and {2}. Most but not all > are changed to {0:.3E}, {1:.3E} and {2:.3E}. But when I want to change > the format I come in dependency hell. > > I could do something like: > format = ':.3E' > fmt0 = '{0' + format + '} >

Best way to use globally format

2015-05-03 Thread Cecil Westerhof
I have a file where I used a lot of {0}, {1} and {2}. Most but not all are changed to {0:.3E}, {1:.3E} and {2:.3E}. But when I want to change the format I come in dependency hell. I could do something like: format = ':.3E' fmt0 = '{0' + format + '} fmt1 = '{1' + format + '} fmt