Draft PEP: string interpolation with backquotes
fredrik at pythonware.com
Tue Dec 4 10:23:16 EST 2001
Oren Tirosh wrote:
> As for the issue of interpolation with backticks being equivalent to str()
> rather than repr() - I believe most people won't even notice.
anyone who proposes to use backticks extensively in a programming
language should be forced to travel around the world for a couple of
months, trying out different keyboards.
besides, the following is only a few characters longer than your
suggested notation (and probably fewer keypresses on my key-
board), works with all existing Python versions, and also with all
existing syntax-aware tools:
i('X=', x, ', Y=', calc_y(x), '.')
coding the "i" function is left as an exercise for the interpolating
More information about the Python-list