Python is a programming language I like quite a lot. Its home is at http://www.python.org, you can find the fine documentation at http://docs.python.org. An excellent list of howtos/guides to get started can be found here.

If you are a non-programmer, fear not! "How to Think Like a Computer Scientist" is a good introduction to programming, it also happens to be free! Tutorials, books, essays and so on more specific to python can be found on the BeginnersGuide/NonProgrammers wiki page.

Interesting pages on python

Here is a list of pages well worth reading if you want to find out more about python. Not all of them are exclusively concerned with python, quite a few of them also cover more general "good practices" when it comes to software

Interesting Tools

A little list of useful "tools" for Pythonistas.

Useful Tools

Things that people use in the real world to get real world problems solved.

Thinking pythonically

Learn to Code Like a Pythonista, a very nice little guide about all things considered pythonic and what is considered not so pythonic. It is a long list of things, read and apply with common sense.

If you do not know why the following happens

   1 def f(a, L=[]):
   2     L.append(a)
   3     print "L=",L
   4 
   5 f(1)
   6 L= [1]
   7 f(2)
   8 L= [1,2]
   9 f(3)
  10 L= [1,2,3]

then read a story about three friends called John, Pierre and Antonio. It also explains why things like N = N + 1 work.

A more in depth discussion can be read on How to think like a Pythonista, it even has pretty ASCII art in it.

Snippets

Slight twist on ReRaising exceptions, catch them in one place an raise in a different. Useful for worker threads for example.


Python (last edited 2008-06-01 11:07:28 by TimHead)