Moving from PHP to Python. Is it Possible
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Mon Dec 14 06:25:16 EST 2009
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.
More information about the Python-list
mailing list