[stringtemplate-interest] Python StringTemplate V3.1b1 release

Benjamin Niemann pink at odahoda.de
Mon Dec 10 20:01:46 PST 2007


Hi Colin,

thanks for the report. I think I fixed most occurrences of this issue, 
but you just found another one ;)
It's fixed now in the repository.

-Ben

Colin Bean wrote:
> Hi Benjamin,
> 
> Just got around to trying out the Python version of 3.1, so far it
> looks exciting.  I did find one bug in 3.1 (which was a problem in 2.2
> as well) when setting an attribute to 0 (a numeric zero).  This is due
> to an incorrect check to determine if the attribute it null (something
> like "if x:" instead of "if x is None:"), so 0 evaluates to false and
> the attribute is never set.
> 
> I *think* the only problem code was located in setRawAttribute in
> templates.py; there's an initial "if attribute:" check, which I hacked
> to be "if attribute is None:".  This caused zeros to render correctly,
> but I don't know if it broke anything else....  Sorry for not
> including line numbers / examples; my development machine is
> experiencing some problems as of this morning :(
> 
> FYI, I wrote a patch for the same issue in 2.2 (where this problem
> happened in several places):
> http://www.antlr.org:8080/pipermail/stringtemplate-interest/2006-July/000547.html
> 
> Take care,
> Colin
> 
> On Dec 3, 2007 11:05 PM, Benjamin Niemann <pink at odahoda.de> wrote:
>> Hello Terence, ST fans and Pythonistas,
>>
>> I dare to announce the first beta of StringTemplate 3.1 for Python.
>> It should be functionally complete, but the code needs more testing and
>> some cleanup for a final release.
>> I hope the documentation in the wiki is sufficient for a start.
>>
>> Ter: could you please put the tarball on the download page?
>> //depot/code/stringtemplate/python/release/PyStringTemplate-3.1b1/dist/stringtemplate3-3.1b1.tar.gz
>>
>> -Ben
>> _______________________________________________
>> stringtemplate-interest mailing list
>> stringtemplate-interest at antlr.org
>> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>>
> 



More information about the stringtemplate-interest mailing list