string.Template.safe_substitute() with % type formatting?

python at bdurham.com python at bdurham.com
Fri May 21 12:04:11 EDT 2010


Python 2.6: Is there a programming technique or 3rd party
formatting module that supports string.Template.safe_substitute()
type string substituion with % type formatting rules for width,
decimals, justification, etc?

Or do I need to use a 3rd party template engine to get the best
of both worlds?

Thanks,
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100521/c6e35055/attachment.html>


More information about the Python-list mailing list