SyntaxError: Invalid Syntax.

Fredrik Lundh fredrik at pythonware.com
Fri Nov 10 14:51:27 EST 2006


"ronrsr" <ronrsr at gmail.com> wrote:

> the exact code that is triggering the error message is:
>
> zc = zsql.connect()

individual statements don't "trigger" syntax errors; they're compiler 
errors, and only
appear when do something that causes code to be compiled.

> exact error message:  SyntaxError:  Invalid Syntax

a complete syntax error usually includes a traceback:

Traceback (most recent call last):
  File "program.py", line 1, in <module>
    import module
  File "module.py", line 25
    if 1
       ^
SyntaxError: invalid syntax

what does the traceback look like in your case?

</F> 






More information about the Python-list mailing list