|
|
|
|
|
by cnvogel
3947 days ago
|
|
Even .format() is quite redundant for the "standard" usage, as we had string interpolation using '%' with dicts for a long time. '%s blah blah blah %s' % (x, y)
'{x} blah blah blah {y}'.format(x=x, y=y)
'%(x)s blah blah blah %(y)s'%{'y':y, 'x':x}
|
|