Jim Hill wrote:

Is there a way to produce a very long multiline string of output with
variables' values inserted without having to resort to this wacky

"""v = %s"""%(variable)


No, not without the god-awful hacks you've already seen.

But it is possible in boo: : http://boo.codehaus.org/
See http://boo.codehaus.org/String+Interpolation

variable1 = 1
variable2 = 2

s = """
   v = ${variable1}
   v2's value is: ${variable2}
"""

print s
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to