En Tue, 17 Jun 2008 02:20:23 -0300, Raymond Hettinger <[EMAIL PROTECTED]> escribió:
On Jun 16, 9:53 pm, kretik <[EMAIL PROTECTED]> 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.

Just out of curiosity, why was it done that way?
I'd say the "obvious" way to change the default delimiter would be to set an instance attribute - so I guess this was a deliberate decision, but I can't figure out why it is better this way...

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to