23 Jul
2010
23 Jul
'10
5:35 p.m.
What's wrong with s = 'foo' + str(bar) + 'baz'
OK, I agree that your code is very pythonic. I've seen and wrote some PHP and Ruby code today, so I've forgotten what's pythonic. Many people from PHP/Ruby/Perl look at string interpolation and find .format(**vars()) trick and feel it's messy. But if there is a clean and pythonic way, adding new syntax is not pythonic.
If you want something Pythonic:
import this ... Explicit is better than implicit
--- André
Thank you.
--
INADA Naoki