In article <[EMAIL PROTECTED]>,
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> $ python -t test.py
> test.py: inconsistent use of tabs and spaces in indentation
> hello
> goodbye
On more question. When using py_compile from with a script, is there any
way to force the -t flag?
M
--
http://mail.
In article <[EMAIL PROTECTED]>,
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> "Mr. Magoo" wrote:
>
> > Can someone provide a snippet which, when run, generates a TabError?
> >
> > I can only seem to get SyntaxError and IndentationError.
>
Can someone provide a snippet which, when run, generates a TabError?
I can only seem to get SyntaxError and IndentationError.
Thanks,
M
--
http://mail.python.org/mailman/listinfo/python-list
Why does py_compile print IndentationError in a different format than
SyntaxError? It makes it harder to parse the output in a non-python
program.
Sorry: IndentationError: ('unindent does not match any outer indentation
level', ('foo.py', 19, 17, '\t\t\t return 0.0 \n'))
instead of
File