Re: problem with sockets code

2008-10-05 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > In message > <[EMAIL PROTECTED]>, Daniel > wrote: > > > while data: > > ... > > data = self.rfile.readline().strip() > > Interpreting a random string value as a Boolean is a bad idea

Re: problem with sockets code

2008-10-05 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Daniel wrote: > while data: > ... > data = self.rfile.readline().strip() Interpreting a random string value as a Boolean is a bad idea. -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with sockets code

2008-10-02 Thread James Mills
On Fri, Oct 3, 2008 at 2:13 AM, Daniel <[EMAIL PROTECTED]> wrote: > Hello, > > I can't seem to get my sockets code to work right. Here is what I > have inside my RequestHandler handle() function: > >total_data=[] > >data = True >logger_server.debug(self.__class__.__name__ +

problem with sockets code

2008-10-02 Thread Daniel
Hello, I can't seem to get my sockets code to work right. Here is what I have inside my RequestHandler handle() function: total_data=[] data = True logger_server.debug(self.__class__.__name__ + ' set data = True') while data: logger_server.debug(self.