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")
>
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
t;USR", "GRP", "OTH":
> for perm in "R", "W", "X":
> if mode & getattr(stat,"S_I"+perm+level):
> print level, " has ", perm, " permission"
>
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
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
, 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.
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
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