Re: issue with string.Template

2005-09-11 Thread Raymond Hettinger
Michele Simionato wrote: > This is somewhat in between a bug report and a feature request. > I was using the new string.Template class and I have run into a > few issues that I traced back to the usage of the idiom > > '%s' % val > > in the 'convert' helper function in Template.substitute. > > I do

Re: issue with string.Template

2005-09-11 Thread Peter Otten
Michele Simionato wrote: from string import Template as T T("$obj").substitute(obj=()) > TypeError: not enough arguments for format string > So, take this as a bug report if the behavior is not intended and > as a feature request if the current behaviour is the intended > one ;) I vo

issue with string.Template

2005-09-11 Thread Michele Simionato
This is somewhat in between a bug report and a feature request. I was using the new string.Template class and I have run into a few issues that I traced back to the usage of the idiom '%s' % val in the 'convert' helper function in Template.substitute. I do not understand why '%s' % val was used