stuck at this from so much time,need help....please ..

Bhanu Karthik bhanukarthik2002 at gmail.com
Sat Nov 23 17:39:37 EST 2013


On Saturday, 23 November 2013 14:37:09 UTC-8, Roy Smith  wrote:
> 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.

indentation is correct when I trying to paste it here,it is showing like it is unindented.



More information about the Python-list mailing list