Roman Yakovenko wrote:
> http://docs.python.org/lib/node109.html
>
> Matthias I think you can use the class from the standard library.
Ah, I wasn't aware of that class. Thanks. I've just committed a version
that makes use of the class.
Unfortunately, there is no easy way to modify the behavior for undefined
variables. So the semantics of the substitution has slightly changed
now. Previously, undefined variables were substituted with an empty
string, now they won't get substituted at all. This probably won't be an
issue in practice, but I had to update some parts in the code because of
that. Now the raw line count is 2 lines less than before (but at least
it *is* less :) but I agree that the new code is easier to grasp.
- Matthias -
|