Not sure, but I think you don't need to return session and if you need it, it should be like this :
dict(var=VAR, var1=VAR1, etc.) dict() is python dictionnary constructor function, so you need a key and a value : var is the key VAR is the value. Richard On Tue, May 15, 2012 at 8:56 AM, Gerald Klein <jk121...@gmail.com> wrote: > I am working through the tutorial on the web2py site, checking web2py out > and I keep getting errors for things I can't see. Like > > type 'exceptions.SyntaxError'> non-keyword arg after keyword arg > (default.py, line 14) > That code does not exist on the page. The prior code is: > *def index():** session.counter = (session.counter or 0) + 1** > return dict(message="hello", session.counter)* > > > the last line is line 14? > > Does anyone have an idea of what this is? > > thanks > > --jerry > >