's.template' contains the original string passed to Template().
s.substitute() returns a string object which can be assigned to a variable.
Yes, and it doesn't actually change s itself either. One confusing-but-it-makes-sense-when-you-get-used-to-it feature about Python is that strings are
immutable, which means that all string methods like substitute() return their results instead of changing the original.
Jeff
Reputation Points: 92
Solved Threads: 156
Practically a Master Poster
Offline 608 posts
since Jul 2006