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
> Note: for your indentation problem, try to use an editor allowing to > display tab and spaces and then identify the problem location, or replace > all tabs by 4 spaces and configure the editor to only use spaces. It would be very helpful when Python would warn you when there are tabs in your

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
desktop a écrit : > I have this class: > > class case(blop.case): > def __init__(self, n, a, b): > blop.case.__init__(self) > print 'Monty Python's Flying Circus has a ' within it...' > ... > ... > > But I get an error when I run the .py script from shell saying: > > print

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