Moving from PHP to Python. Is it Possible
Robert Kern
robert.kern at gmail.com
Tue Dec 29 16:44:23 EST 2009
On 2009-12-29 15:26 PM, Aahz wrote:
> In article<4b2602a0$0$30660$426a34cc at news.free.fr>,
> Bruno Desthuilliers<bruno.42.desthuilliers at 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
More information about the Python-list
mailing list