PDA

View Full Version : Anyone know the Python version in 10.6?




JD92
Jun 19, 2009, 04:42 PM
I was just wondering if anyone know what version of Python is in the latest build of Snow Leopard?

I'm planning on spending a lot of time over the summer learning Python and since I'll be doing it on a Mac I figured I should find out what version will be in the next OS before I decide whether to go down the 3.0 or 2.x route.

Thanks,
Jack



larkost
Jun 19, 2009, 06:50 PM
My guess is that at least the "main" python will be 2.x. At this point a lot of the most-used modules for Python have yet to make the transition to 3. Last I checked the general consensus was to wait until at least 3.1 to make the jump.

I am looking forward to the transition, and it might be that Apple will include both versions. But my bet is that the latest 2.x will be what comes up when you type "python --version". But it is still too early to tell. Apple can always change their mind, right up to the ship date.

Meek Wriggle
Jun 19, 2009, 07:38 PM
You can download the latest Python from here (http://www.python.org/download/releases/3.0.1/). There's a little script you can run on the installer menu which will update your .bash_profile file so you can run Python from the terminal.

therevolution
Jun 19, 2009, 11:21 PM
It comes with 2.6.1, but you can always install whatever version you want.