I am a quite experienced PHP developer (using OOP features where possible) and currently searching for another language to play with. I’ve used Ruby, Python and Node and found Python to be the best choice so far (in terms of maturity, ease of use and the learning curve). As I am mostly focusing on web centric development Django seems to be the obvious framework of choice. But here is my question: Django is still based on Python 2, as is Flask but nearly every Python tutorial out there suggests you to start learning Python 3. But it seems that version 2 is the one you have to start with if you want to use the more popular web frameworks and that doesn’t seem to change any time soon. Is this true? Do you know alternatives?
I know there are similar questions like that but they are either outdated or not focused on web development so I guess this is a valid one. Thanks in advance!
If you are looking for a Python framework for web development, I would highly recommend using Django. Regarding Python 2 or 3 issue, Python 3 is of course the future. Django will soon be migrated to Python 3. For now you can stick with Django and Python 2.7. But avoid using those features of Python 2.7 which are removed from Python 3.