SyntaxError: Invalid Syntax.

Roberto Bonvallet Roberto.Bonvallet at cern.ch
Fri Nov 10 12:02:52 EST 2006


ronrsr wrote:
>   return =  MySQLdb.connect (host = "db91x.xxxx.com",
>                           user = "xxxx",
>                            passwd = "xxxxx",
>                        db = "homebase_zingers"
>                           );

return is a reserved keyword.  You cannot have a variable with that name.

-- 
Roberto Bonvallet



More information about the Python-list mailing list