[stringtemplate-interest] Indirect attribute lookup

Roman Odaisky roma at qwertty.com
Sat Sep 6 01:10:33 PDT 2008


Greetings,

>>> st = StringTemplate("$(a)$")
>>> st["a"] = "b"
>>> st["b"] = "c"
>>> print unicode(st)
b

It is my understanding that this is supposed to print “c”. Am I severely 
mistaken?

StringTemplate 3.1 for Python.

-- 
TIA
Roman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2286 bytes
Desc: not available
Url : http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20080906/89175d81/attachment.bin 


More information about the stringtemplate-interest mailing list