On 2009-12-29 15:26 PM, Aahz wrote:
In article<4b2602a0$0$30660$426a3...@news.free.fr>,
Bruno Desthuilliers<bruno.42.desthuilli...@websiteburo.invalid> wrote:
zeph a �crit :
4) It's better to collect all your eventual output into a string that
you print
Yuck ! Definitly one of the worst advises you could give.
<OP>
By all mean, *DONT* do that. Use a templating system instead.
</OP>
Because I know Zeph, I know that you two aren't actually disagreeing. ;-)
Templates are one good way to follow Zeph's advice, but particularly for
small projects they may be overkill.
I find that Ian Bicking's Tempita is small enough (in terms of code and language
design) to not be overkill for even small tasks.
http://pythonpaste.org/tempita/
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list