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
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
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