Draft PEP: string interpolation with backquotes
Paul Svensson
paul at svensson.org
Tue Dec 4 20:20:45 EST 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.
Actually,
considering that quotes create strings,
having `foo` mean repr(foo) and "`foo`" mean str(foo) seems fairly natural...
/Paul
More information about the Python-list
mailing list