a bit closer here, but I'm not sure if they are
workable (or usable) with 2.5... which is where I need to work.
Ed
One of the solutions from here might work for you:
http://wiki.python.org/moin/Templating
Ok, cool. A couple of followups - I'd be interested in knowing which
of the
Any ideas would be great on this, including pitfalls that people see
in implementing it.
http://docs.python.org/library/string.html#template-strings
regards
Steve
Steve,
Thanks for the tip, I did look at templates and decided that they
weren't quite completely what I was looking for,
All,
I've been using the trace module for python (as per
http://www.dalkescientific.com/writings/diary/archive/2005/04/20/tracing_python_code.html),
and would very much like to have a feature there that I've implemented
for perl already.
Namely, I would like output in the format as described on
All,
Ok, it looks like in order to implement a tracer that does
interpolation, I'm going to have to hack around with frames.
Perl's interpolation is fairly straightforward, to do interpolation of
$a == 1 all you need to do is put quotes around $a == 1 to have $a
evaluated.
So, I'd like to do
All,
I've been looking at the trace module, and although it looks useful, I'm
surprised that there aren't a couple of features that I would have thought
would be fairly basic. So, does trace support (for the --trace option):
- indentation tracking stacklevel (where each function is prefixed