[issue39842] partial_format()

Marco Sulla report at bugs.python.org
Wed Mar 4 14:00:03 EST 2020


Marco Sulla <launchpad.net at marco.sulla.e4ward.com> added the comment:

> Do you have some concrete use case for this?

Yes, for EWA:
https://marco-sulla.github.io/ewa/

Since it's a code generator, it uses templates a lot, and much times I feel the need for a partial substitution. In the end I solved with some ugly tricks.

Furthermore, if the method exists in the stdlib for `string.Template`, I suppose it was created because it was of some utility.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39842>
_______________________________________


More information about the Python-bugs-list mailing list