Moving from PHP to Python. Is it Possible

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Mon Dec 21 06:34:46 EST 2009


AppRe Godeck a écrit :
> On Mon, 14 Dec 2009 12:25:16 +0100, Bruno Desthuilliers wrote:
> 
>> r0g a écrit :
>>> Bruno Desthuilliers wrote:
>>>> Sancar Saran a écrit :
>>>> (snip)
>>>>> My problem is with PHP syntax and performance.  I'm just trying to
>>>>> replicate my recepies in python...
>>>> Python is not PHP, and trying to write PHP in Python won't buy you
>>>> much except pain and frustration.
>>>
>>> I think people are being a little harsh here. Replicating exactly what
>>> PHP code does on a micro level i.e. line by line is probably a bad idea
>>> but for all we know a lot of the macro level stuff might be fine, or
>>> mostly fine i.e. structures, algorithms, classes and functions etc.
>> I was talking about trying to replicate PHP's execution model and idioms
>> in Python - the "framework" part -, not about application specific
>> algos, data structures etc.
> 
> Try web2py I think you will surprise yourself with its simplicity and 
> speed :)

I don't like what I've seen from web2py, thanks. Also and FWIW, I don't 
see how it relates to the OP ?



More information about the Python-list mailing list