autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: API changes for stringtemplate and required python version


From: Filippo Giunchedi
Subject: Re: API changes for stringtemplate and required python version
Date: Sat, 18 Jul 2009 18:52:53 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hi Peter,

On Sat, Jul 18, 2009 at 05:35:33PM +0200, Peter Simons wrote:
> Hi Filippo,
> 
> thank you very much for your efforts.
> 
>  > stringtemplate3-3.1-py2.5.egg seems to have changed api and now wants
>  > a "file" kwarg fileobject instead of fileName:
> 
> I wasn't aware of that. Arch Linux ships PyStringTemplate version 3.2b1;
> that's the one I've been using. Anyway, since the necessary changes are
> really minor, I'd be in favor of supporting the earlier version, too. If
> it's alright for you, then please commit your changes to the 'maint'
> branch.

done

> StringTemplate is good at formatting a well-defined set of data types
> into different output formats. The Archive doesn't really need that
> capability, though. What we need is to generate just one output format
> -- say texinfo --, but we need to generate that in very high quality.
> It's my impression that this is easier accomplished in plain Python code
> than in StringTemplate. Besides, StringTemplate is not particularly
> fast.

I agree, plus the parsing of current macros looks fairly trivial

>  > python's textwrap is got break_on_hyphens only on 2.6
> 
> This is unpleasant, because there are several distributions that ship
> Python 2.4 or 2.5 by default. I'd like the code to work with those
> versions, too. I'll try to figure out a way to remedy this problem. In
> any case, the current limitation should be documented in NOTES, so
> please commit that change, too.

done

regards,
filippo
-- 
Filippo Giunchedi - http://esaurito.net - 0x6B79D401

"I drank what?"
-- Socrates




reply via email to

[Prev in Thread] Current Thread [Next in Thread]