"Martin v. Löwis" <martin at v.loewis.de> writes: > if c == 's': > fmt[i] = str(len(arg))+'s' fmt[i] = "%ds" % len(arg) might be a little faster.