News for hackers. Stuff that matters.
Re:Invent Your Own Computer Games with Python (Free e-Book) by jbail on Tuesday November 16, 2010 @11:32AM (#1910585)
To add to the free Python book fest, Learn Python the Hard Way http://learnpythonthehardway.com is excellent for beginners. If you do know how to program, Dive Into Python http://diveintopython.org is also excellent.

They're both free.

I've been programming for awhile, but I read both books and took useful things away from both of them.

Re:Invent Your Own Computer Games with Python (Free e-Book) by RyanMcGreal on Tuesday November 16, 2010 @12:37PM (#1910835)
DIP has a few pitfalls, mostly related to old technologies, but it holds up surprisingly well.

For HTML processing, you're much better off using the BeautifulSoup module than the process outlined in DIP.

The web services chapter is still solid on generalities, but these days a growing number of RESTful (or REST-ish) services deliver content in JSON. As of Python 2.6, the standard library includes the json module, which converts a JSON object into a native Python list/dictionary. (For earlier versions, the same library is available in the third-party simplejson module.) If you're targeting 2.x, you can always import json this way:

    try:
        import json
    except ImportError:
        import simplejson as json 
For RESTful web service interaction, Dive Into Python 3 includes a useful chapter on using the excellent third-party httplib2 module, which is definitely worth reviewing as httplib2 is available for 2.x.

The SOAP web services chapter is well past its best-by date (as is the SOAP protocol itself). If you need to access a SOAP web service, the third party suds module is pretty good. (As far as I can tell, the SOAPpy module is no longer actively maintained.)

Re:Invent Your Own Computer Games with Python (Free e-Book) by icey on Tuesday November 16, 2010 @11:37AM (#1910604)
Just keep in mind that Dive Into Python hasn't been significantly updated since 2004.
Re:Invent Your Own Computer Games with Python (Free e-Book) by jbail on Tuesday November 16, 2010 @11:50AM (#1910662)
I've been trying nearly all the code samples and haven't run into any issues yet. I'm using version 2.7 of Python though. Haven't upgraded to 3.1 yet.
Re:Invent Your Own Computer Games with Python (Free e-Book) by sigzero on Tuesday November 16, 2010 @11:55AM (#1910683)
There is a "v3" version and the "v2" version is sufficient to learn from despite not having been updated for a while.