Draft PEP: string interpolation with backquotes
paul at svensson.org
Wed Dec 5 02:20:45 CET 2001
Oren Tirosh <oren-py-l at hishome.net> writes:
>As for the issue of interpolation with backticks being equivalent to str()
>rather than repr() - I believe most people won't even notice. When the
>system simply does the Right Thing according to the context it feels more
>consistent even if technically it isn't.
considering that quotes create strings,
having `foo` mean repr(foo) and "`foo`" mean str(foo) seems fairly natural...
More information about the Python-list