Python 2 vs Python 3.
You have both versions installed on the Pi. When you enter python then it's running 2 (at the moment - this may change in future). To run Python 3 then use python3 on the command line.
You can see this for yourself:
Code: Select all
pi@raspberrypi ~ $ python --version
Python 2.7.3rc2
pi@raspberrypi ~ $ python3 --version
Python 3.2.3
Normally programming languages try to keep backwards compatibility as much as possible, sometimes deprecating a few commands.
In the case of python the decision was made to go for cleaner better code at the expense of breaking backwards compatibility. You can read more here:
http://wiki.python.org/moin/Python2orPython3