Re: Socket problems

2008-07-13 Thread Jonathon Sisson
SSL objects use "write", not "send". You also need to change this: self.sock.write('NICK %s\r\n') % self.nick to this: self.sock.write('NICK %s\r\n' % self.nick) If you don't, the interpreter will bomb on trying to concatenate the return value for "write" (an integer) with the string self.ni

Socket problems

2008-07-13 Thread jjbutler88
I am trying to write a simple python IRC client, roughly following this guide: http://www.devshed.com/c/a/Python/Python-and-IRC/ I have written some code, which uses the same commands as the guide, but I get this error: Traceback (most recent call last): File "/Library/Frameworks/Python.framewor

Re: httplib/socket problems reading 404 Not Found response

2007-03-14 Thread Patrick Altman
On Mar 13, 3:16 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 13 Mar 2007 10:38:24 -0300, Patrick Altman <[EMAIL PROTECTED]> > escribió: > > >> Yes, it's a known problem. See this message with a > >> self-response:http://mail.python.org/pipermail/python-list/2006-March/375087.html >

Re: httplib/socket problems reading 404 Not Found response

2007-03-13 Thread Gabriel Genellina
En Tue, 13 Mar 2007 10:38:24 -0300, Patrick Altman <[EMAIL PROTECTED]> escribió: >> Yes, it's a known problem. See this message with a >> self-response:http://mail.python.org/pipermail/python-list/2006-March/375087.html > Are there plans to include this fix in the standard Python libraries >

Re: httplib/socket problems reading 404 Not Found response

2007-03-13 Thread Patrick Altman
> Yes, it's a known problem. See this message with a > self-response:http://mail.python.org/pipermail/python-list/2006-March/375087.html Are there plans to include this fix in the standard Python libraries or must I make the modifications myself (I'm running Python 2.5)? -- http://mail.python.

Re: httplib/socket problems reading 404 Not Found response

2007-03-12 Thread Gabriel Genellina
En Tue, 13 Mar 2007 00:07:55 -0300, Patrick Altman <[EMAIL PROTECTED]> escribió: > I am attempting to use a HEAD request against Amazon S3 to check > whether a file exists or not and if it does parse the md5 hash from > the ETag in the response to verify the contents of the file so as to > save

httplib/socket problems reading 404 Not Found response

2007-03-12 Thread Patrick Altman
I am attempting to use a HEAD request against Amazon S3 to check whether a file exists or not and if it does parse the md5 hash from the ETag in the response to verify the contents of the file so as to save on bandwidth of uploading files when it is not necessary. If the file exist, the HEAD works