string.Template.delimiter cannot be overriden?
kretik
kretik at yahoo.com
Tue Jun 17 01:29:47 EDT 2008
Raymond Hettinger wrote:
> On Jun 16, 9:53 pm, kretik <kre... at yahoo.com> wrote:
>> I've been trying to coax this class to use something other than the
>> default '$' but it seems setting it to something else has no discernible
>> effect. Is it necessary to inherit from the class to do this?
>
> Yes, subclassing is the intended way to produce variants of Template
> with a different delimiter.
OK, that makes no sense but I guess it's some sort of pythonistic thing
or something =)
Thanks a lot for the response.
More information about the Python-list
mailing list