Easy "here documents" ??

Nick Coghlan ncoghlan at iinet.net.au
Sun Dec 19 07:24:51 CET 2004

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)
> business?

Try combining Python 2.4's subprocess module with its string Templates.


Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia

More information about the Python-list mailing list