Ian Bicking: the old part of his blog

Re: String Interpolation

I agree that Python's default string interpolation sucks, but it's simple enough to fix. Just import the sys and Itpl [1] libraries and write sys.stdout=Itpl.filter() to get real string interpolation. Definitely not as clean as native string interpolation, but if that's a deal-breaker for anybody, it's easy enough to fix.

[1] http://lfw.org/python/Itpl.py

Comment on Fixes What's Wrong With Python
by Bill Mill


String interpolation by default is a _bad_ thing. It introduces unexpected behavior which are frequently security holes. Explicit interpolate(string, map) of some sort is better.
# Oliver X