"David Ells" <ells.david at gmail.com> wrote in message news:1156534086.698353.81850 at m73g2000cwd.googlegroups.com... > def increment(x): > return x += 1 'return x+1' works better ;-) tjr