> It would be very helpful when Python would warn you when there are tabs in
> your source.
invoke python with the -t option for warnings about tabs or -tt for errors.
-Dave
--
http://mail.python.org/mailman/listinfo/python-list
> How is he supposed to run MS notepad on X11? :)
>
I am saying MS notepad, but any software (running on Linux) showing you
clearly the tabs will help.
It would also be very convenient when python would deal with tabs in a human
friendly way.
Wim Vogelaar, http://home.wanadoo.nl/w.h.vogelaar/
in
your source.
So instead of only saying: "IndentationError: unexpected indent"
there could be an additional message saying: "there are tab characters in
that line, please remove them".
Wim Vogelaar, http://home.wanadoo.nl/w.h.vogelaar/
--
http://mail.python.org/mailman/listinfo/python-list
"Wim Vogelaar" wrote:
> You have possibly unvisible tab characters in your file.
> Just copy your lines to the simple MS notepad and try again.
How is he supposed to run MS notepad on X11? :)
Regards,
Björn
P.S.: YES, I know there is wine.
--
BOFH excuse #126:
it has Intel Inside
--
htt
n the .py script from shell saying:
>
> print 'Monty Python's Flying Circus has a ' within it...'
> ^
> IndentationError: unexpected indent
>
> I have tried to indent the print statement 8 blanks but that does not
> help. Any hints?
You have
You have possibly unvisible tab characters in your file.
Just copy your lines to the simple MS notepad and try again.
Wim Vogelaar, http://home.wanadoo.nl/w.h.vogelaar/
--
http://mail.python.org/mailman/listinfo/python-list
hon's Flying Circus has a ' within it...'
^
IndentationError: unexpected indent
I have tried to indent the print statement 8 blanks but that does not
help. Any hints?
--
http://mail.python.org/mailman/listinfo/python-list