Kent,
On Thu, 10 Feb 2005 13:43:21 -0500, Kent Johnson <[EMAIL PROTECTED]> 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() directly.
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.
Kent
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
