stuck at this from so much time,need help....please ..
Roy Smith
roy at panix.com
Sat Nov 23 17:37:09 EST 2013
In article <8445e47e-7efe-4f37-9b40-db2896d581f8 at googlegroups.com>,
Bhanu Karthik <bhanukarthik2002 at gmail.com> wrote:
> data = sock.recv(RECV_BUFFER)
> username = str(sock.getpeername())
> username = usernames[username]
> if data == "/quit":
> print data
> sock.send("bye")
> sock.close()
> CONNECTION_LIST.remove(sock)
>
>
> this is exact code..
> it is not even entering the if ...
> I tried ( c= (data is '/quit')if c)
That can't be the exact code. What you posted is a syntax error because
the line after the "if" statement isn't indented properly.
More information about the Python-list
mailing list