Re: indentation error

2010-03-06 Thread Tim Roberts
asit wrote: > >According to me, indentation is ok. but the python interpreter gives >an indentation error > >[asit ~/py] $ python search.py > File "search.py", line 7 >findResults = string.split(commandOutput, "\n") >

Re: indentation error

2010-03-05 Thread Steven D'Aprano
On Fri, 05 Mar 2010 00:04:13 -0800, asit wrote: > Consider the following code [snip] > According to me, indentation is ok. but the python interpreter gives an > indentation error You can trust the interpreter. There *is* an indentation error. Most likely you have mixed spaces and

Re: indentation error

2010-03-05 Thread Ulrich Eckhardt
t;USR", "GRP", "OTH": > for perm in "R", "W", "X": > if mode & getattr(stat,"S_I"+perm+level): > print level, " has ", perm, " permission" >

indentation error

2010-03-05 Thread asit
else: print level, " does NOT have ", perm, " permission" except: print "There was a problem - check the message above" According to me, indentation is ok. but the python interpreter gives an indentation error [asit ~/py] $ python search.py File

Re: Re: Bug: spurious indentation error

2007-09-28 Thread Gabriel Genellina
En Sat, 29 Sep 2007 01:43:53 -0300, Mridula Ramesh <[EMAIL PROTECTED]> escribi�: > Lol, nope, I checked today too, and it happened again. Try running this > as a > script, not from the prompt - I got a SyntaxError on line 10 as expected. After correcting it, I got an `IndentationError: expect

Re: Re: Bug: spurious indentation error

2007-09-28 Thread Mridula Ramesh
, command=callback) filemenu.add_command(label="Edit") filemenu.add_command(label="Delete") filemenu.add_separator() filemenu.add_command(label="Exit") self.dbConnect() self.nowgather(gctr) self.showfixed() self.

Re: Bug: spurious indentation error

2007-09-28 Thread Steve Holden
Mridula Ramesh wrote: > hi. > > is this the right place to report a bug? > > i had written this by mistake: >filemenu = Menu(menu) , bg="White") > > instead of > filemenu = Menu(menu, bg="Pink") > > and the compiler kept giving me an i

Bug: spurious indentation error

2007-09-28 Thread Mridula Ramesh
hi. is this the right place to report a bug? i had written this by mistake: filemenu = Menu(menu) , bg="White") instead of filemenu = Menu(menu, bg="Pink") and the compiler kept giving me an indentation error in a line much further down which was perfectly okay. i a