Jump to content
  • Advertisement
Sign in to follow this  
Landshark

Python 3.0 - How do I learn?

This topic is 3407 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, Python has been pretty fun to start learning so far. It's my first programming language (sorta..I can pick apart VB, html, c++ and C# a little bit), but I'm wondering if picking Python 3.0 was a good start or should I have started with an earlier version of Python? Also, since I've started with Python 3.0 I found a tutorial called Byte of Python (link is at home..I'm at the office) that was written for 3.0. Are there any preferred tutorials for Python 3.0? I'm using the ActivePython gui, although I have the IDLEPython prompt installed as well. The gui just seemed easier to manage (and closer to visual studio which I'm somewhat familiar with the interface). Are there any disadvantages of using Python3.0? I read something about some changes that will break older python code if compiled in 3.0, but not really sure if that effects me when I'm just starting to learn it.

Share this post


Link to post
Share on other sites
Advertisement
The primary difficulty you'll run into with 3.0 right now is that not many libraries currently work with it. When it comes time to do fun multimedia stuff, you'll need to fall back to an earlier version to use stuff like PyGame or PIL or NumPy. Given that the differences in syntax are so minor, you probably wouldn't go far wrong by sticking to 2.6 for the time being.

Share this post


Link to post
Share on other sites
The disadvantage of using Python 3.0 is that a lot of libraries haven't been rewritten/compiled for it yet. PyGame is working on it, Pyglet is (I'm guessing) working on it, and Panda3D has no real intentions of supporting it anytime too soon. The advantage of working with Python 3 is that it is the way of the future, so it is good forward thinking. [wink]

Share this post


Link to post
Share on other sites
Cool, thanks for the advice both of you.

I'll probably end up going back to 2.6 as I'm not looking to make it more challenging than I need to. :)

Share this post


Link to post
Share on other sites
Agreed. I also suggest starting with and older version. Especially if you are using pygame or planning on using it in near future since it's not yet compatible with 3.0.

Besides if you need any of the new stuff you could just use a future statement in the older versions since that Guido thinks of everything-LOL!

Share this post


Link to post
Share on other sites
Thanks again,

I am now following this tutorial http://www.swaroopch.com/notes/Python
(see the link for Python 2.x)

And am using the ActivePython2.6.1 for the gui. Seems like a good combo to get me started. :)


Share this post


Link to post
Share on other sites
As I always say in these threads, I personally recommend using 2.5 at this point because 2.6 is just as new as 3.0, and equally poorly supported by 3rd party libraries. But if the libraries you want to use run on 2.6, go with that.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!