In article <[email protected]>,
Bhanu Karthik <[email protected]> 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.
--
https://mail.python.org/mailman/listinfo/python-list