php to python code converter

Diez B. Roggisch deets at nospam.web.de
Fri May 8 13:43:50 EDT 2009


Dotan Cohen wrote:

>> I'm not a big fan of PHP but I don't understand the desireability of
>> such a tool.  If you have a good PHP app just run it.  The point of
>> Python in my mind is that it is a cleaner syntax and promotes better
>> code.  Anything that converts PHP to Python is going to leave you with
>> some butt-ugly Python.  It also risks adding new bugs.
>>
>> If you want a Python version of Drupal then perhaps that is the project
>> that you want to start.  Start fresh using the existing project as your
>> requirements specification.  Don't automatically import all their
>> coding choices that may be partially based on the language used.
>>
> 
> It would be a great learning tool. I am pretty decent with PHP but
> just getting started in Python. This might help such users flatten out
> the learning curve.

I'm almost 100% sure it won't. The code is machine-generated, thus not easy
to the human eye, not idiomatic so you don't learn how to write good python
through it. You learn how to jump through hoops to code the same way in
python that you do in PHP.

Diez




More information about the Python-list mailing list