Easy "here documents" ??
nick at craig-wood.com
Mon Dec 20 21:30:02 CET 2004
Jim Hill <jimhill at swcp.com> wrote:
> Nick Craig-Wood wrote:
> >I prefer this
> > ... I'll have %(amount)s %(what)s
> > ... for $%(cost)s please""" % locals()
> Looks pretty slick. This might just be what I need.
> >Its almost as neat as perl / shell here documents and emacs parses """
> >strings properly too ;-)
> Thanks for the tip.
You are welcome! I came to python after many years of perl too...
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list