Georg Brandl wrote: > BTW, has anyone seen string.Template being used somewhere?
I use it from time to time, usually when formatting user-provided strings (because "%(foo)s" is not very pleasant or easy-to-explain compared to "$foo"). However, I *never* use it internally in code, because the overhead of importing string and creating the template far outweighs the inconvenience of %-based substitution. Oh, and I really like %r. I'd personally be very happy if $"$foo" worked, as well as "$foo".substitute(). $/shell-style substitution is the norm out in the world, not the %/printf style that Python uses; it'd be nice to move towards that norm. string.Template is a bit of a tease that way, since it doesn't actually provide a very convenient alternative to the bulk of what % is used for. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com