error? inconsistent dedent

tim_one at tim_one at
Fri Jun 18 17:13:34 EDT 1999

In article <376A6796.814CBA24 at>,
  Holger Jannsen <holger at> wrote:
> Couldn't understand following error:
> C:\myPython> -x -d test
> inconsistent dedent
>   File "C:\myPython\", line 619
>     opts, args = getopt.getopt(sys.argv[1:], 'x')
>                                         ^
> SyntaxError: invalid token
> What does 'inconsistent dedent' mean?
> Why does that error occur?

Because you're running with the -x switch, the line number in the
traceback is off by 1, and it's not showing the correct line either.
This is fixed in the current development version of Python, but didn't
make it in time for the 1.5.2 release.  Go into your source file and
look at the lines *next* to the line it's showing you here.

Sent via
Share what you know. Learn what you don't.

More information about the Python-list mailing list