I’ve bought a book on Python 3.1… it’s called “Beginning python” now that version 3.2 is out… does this makes the book I’ve bought obselete?
what is the difference between 3.1 VS 3.2??
can I read and learn the book that I’ve bought and apply it to Python version 3.2.2?
In my “everyday practice” I have not observed any differences between 3.1 and 3.2. (I do not did much - just rewrote about 1000 code lines from Python 2.x to Python 3.1x, for Blender 2.54, and then to keep thus code running for the subsequent Blender versions).
In the Blender Python API they change sometimes an important detail, which forces me to update your script. I have no such problems in transition from Python 3.1 (used by Blender 2.54) to Python 3.2 (used by the newer Blender versions). Anyway, I am sure that all the changes between these Python versions are explicite listed on www.python.org - just dig a little in the documentation, exposed there!
oh and uh… I’ve got another question… I might as well post it here…
does Blender 2.59 comes with Python 3.2.2?
I remembered the old versions of Blender… you have to download python separately…
normaly all newer (since 2.5) blender versions come with their own python - you can check it in the blender-install-directory, for 2.59.x there is a subdirectory called “2.59”
and there is the subdirectory called “python” with the python-lib … (you have to look deeper in this directory-structure)
But, it is possible to build a blender-version, that will use the global installed python of your system (then you have to install this python-version seperate). Such a system would be smaller to distribute …
python 3.1 -> 3.2 is mostly bug fixes… a few functions have been added here and there but mostly for hardcore users… things you are unlikely to encounter or even care about…
So yeah a book on Python 3.1 should be perfectly fine for learning/using Python 3.2… highly doubt you’ll run into any problems.
Only thing I found that your book probably wont talk about is the addition of a newer module for parsing command line arguments:
Being more fully featured than its predecessor, the argparse module is now the preferred module for command-line processing. The older module optparse is still being kept available because of the substantial amount of legacy code that depends on it.
that means I don’t need to download python from python.org right? considering what you guys said on the post above about blender having it’s own python 3.2.0.