You seem to have an extra (
On Tuesday, 11 December 2012 11:59:23 UTC, software.ted wrote:
>
> What am i missing with these statement:
>
> def getDict():
> return {(o.id:o.name for o in db(db.table).select()}
>
> or
>
> def getDict():
> return dict((o.id:o.name for o in db(db.table).select())
>
> getting same syntax error for both, whats the correct way of returning a
> dictionary?
>
> Teddy L.
>
>
> --

