Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #60330

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

Newsgroups comp.lang.python
Date 2013-11-23 14:39 -0800
References <a4a25260-4786-4b2b-81f5-5da87b05d301@googlegroups.com> <mailman.3102.1385245397.18130.python-list@python.org> <8445e47e-7efe-4f37-9b40-db2896d581f8@googlegroups.com> <roy-E94E09.17370923112013@news.panix.com>
Message-ID <b3becfe3-09ea-4bd9-a3b4-3c1ef6293dcf@googlegroups.com> (permalink)
Subject Re: stuck at this from so much time,need help....please ..
From Bhanu Karthik <bhanukarthik2002@gmail.com>

Show all headers | View raw


On Saturday, 23 November 2013 14:37:09 UTC-8, Roy Smith  wrote:
> In article <8445e47e-7efe-4f37-9b40-db2896d581f8@googlegroups.com>,
> 
>  Bhanu Karthik <bhanukarthik2002@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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

stuck at this from so much time,need help....please .. Bhanu Karthik <bhanukarthik2002@gmail.com> - 2013-11-23 14:15 -0800
  Re: stuck at this from so much time,need help....please .. Chris Angelico <rosuav@gmail.com> - 2013-11-24 09:23 +1100
    Re: stuck at this from so much time,need help....please .. Bhanu Karthik <bhanukarthik2002@gmail.com> - 2013-11-23 14:29 -0800
      Re: stuck at this from so much time,need help....please .. Chris Angelico <rosuav@gmail.com> - 2013-11-24 09:32 +1100
      Re: stuck at this from so much time,need help....please .. MRAB <python@mrabarnett.plus.com> - 2013-11-23 22:58 +0000
    Re: stuck at this from so much time,need help....please .. Bhanu Karthik <bhanukarthik2002@gmail.com> - 2013-11-23 14:33 -0800
      Re: stuck at this from so much time,need help....please .. Roy Smith <roy@panix.com> - 2013-11-23 17:37 -0500
        Re: stuck at this from so much time,need help....please .. Bhanu Karthik <bhanukarthik2002@gmail.com> - 2013-11-23 14:39 -0800
          Re: stuck at this from so much time,need help....please .. Chris Angelico <rosuav@gmail.com> - 2013-11-24 09:46 +1100
      Re: stuck at this from so much time,need help....please .. Chris Angelico <rosuav@gmail.com> - 2013-11-24 09:41 +1100

csiph-web