Python 2 and Python 3 are widely used. The reason there are two versions is because Python 3 introduced several new keywords. This would mean that Python 2 code compiled using the Python 3 compiler could break if the variable name, for example, matches the Python 3 keyword. The decision about what to do depends on your situation, but in general new projects should probably use Python 3.
For the part after the "dot", Python 2 will refer to the latest version of Python 2 (for example, 2.7), and Python 3 will refer to the latest version 3.5. The usual "Python" links to Python 2. I donβt know what happens inside the compilers, but Python 3.5 and Python 3.5m have separate executables, but they are identical in byte-byte on my Ubuntu 16.04.
Bill Sep 11 '16 at 1:38 2016-09-11 01:38
source share