views:

138

answers:

3

For example, c++ have cplusplus.com/reference which contain all of c++ standard library complete with definitions and more importantly examples, so I was wondering if there is such a website for python. I know that python is self documented, like i could use

help(object)
object.__doc__
dir(object)

I know of

doc.python.org/library

wiki.python.org

But it doesn't have examples of every method. It would be nice if there was such a website, because when I am learning a new python library I find myself just testing the methods to see if it does what I want, and it makes my programming really slow. But this maybe because I have only have 2 years of programming under my belt. So my question is, is there such a website and is there a better way to learning a new library in python? Because when learning a new c++ library, all I need to do is follow by example which makes learning a new c++ library really easy.

+7  A: 

Try Python Module of The Week. It may not be exactly what your looking for, but you may find it helpfull.

PyMOTW is a series of blog posts written by Doug Hellmann. It was started as a way to build the habit of writing something on a regular basis. The focus of the series is building a set of example code for the modules in the Python standard library.

volting
+1  A: 

Not exactly a website (although you can probably buy a digital version @ Safari Books Online) but the 'Python in a nutshell' book by Alex Martelli (also an active user here on StackOverflow) seems like a good fit for these needs (to be used as a reference guide mostly).

ChristopheD
I'm also a fan of browsing Python in a Nutshell as a way of learning about new modules (it's my favorite Python book). It is in need of a 3rd edition though - it only covers Python 2.5 and has started to feel a bit dated...
Scott Griffiths
A: 

The effbot website is pretty good though a bit old. In addition, the PyMOTW is suggested earlier.

Muhammad Alkarouri