I am just learning python on my ubuntu 8.04 machine which comes with python 2.5 install. Is 2.5 too dated to continue learning? How much of 2.5 version is still valid python code in the newer version?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basically, python code, for the moment, will be divided into python 2.X code and python 3 code. Python 3 breaks many changes in the interest of cleaning up the language. The majority of code and libraries are written for 2.X in mind. It is probably best to learn one, and know what is different with the other. On an ubuntu machine, the
python3package will install Python 3, which can be run with the commandpython3, at least on my 8.10 install.To answer your question, learning with 2.5 is fine, just keep in mind that 3 is a significant change, and learn the changes – ask yourself as you code, ‘how would this be different in 3, if at all?’.
(As an aside, I do wish Ubuntu would upgrade to 2.6 though. It has a nice compatibility mode which tries and points out potential difficulties. But python is in such big use on a modern Linux distro, it can be a difficult change to make)
Here’s an article describing 2.6 -> 3’s changes