Re: IndentationError: unexpected indent

2007-06-16 Thread Dave Borne
> 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

Re: IndentationError: unexpected indent

2007-06-16 Thread Wim Vogelaar
> 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/

Re: IndentationError: unexpected indent

2007-06-16 Thread Wim 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

Re: IndentationError: unexpected indent

2007-06-15 Thread Bjoern Schliessmann
"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

Re: IndentationError: unexpected indent

2007-06-14 Thread Laurent Pointal
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

Re: IndentationError: unexpected indent

2007-06-14 Thread Wim Vogelaar
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

IndentationError: unexpected indent

2007-06-14 Thread desktop
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