[Tutor] Perl Symbology
kent37 at tds.net
Thu Feb 10 20:22:52 CET 2005
Bill Mill wrote:
> On Thu, 10 Feb 2005 13:43:21 -0500, Kent Johnson <kent37 at tds.net> wrote:
>>Python 2.4 includes a string.Template class which does much the same thing as Itpl.itpl():
> I just didn't want to give an answer that only works in python 2.4,
> and one furthermore which I have not tested.
> You can also find a recipe to make pp() easy to make at
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/335308 . This
> function may or may not be better than yours; I haven't used either.
It's better, it looks at locals() and globals() as well as allowing dict and keyword args do pp()
> the Itpl module has worked fine for me (and for the author of ipython)
> for quite a while.
I certainly didn't mean to cast any doubt on Itpl, I just thought it was worth pointing out that
there is some support in the standard library now.
More information about the Tutor