Re: Kill thread or at least socket.getaddrinfo

2007-04-10 Thread Chris Mellon
On 10 Apr 2007 11:07:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On 26 Mar., 18:08, [EMAIL PROTECTED] wrote: > > you know the pid, you can kill it, but that's not always a > > clean way of accomplishing the task. > > So I have to open the connection in a new process... Sigh.. How I hat

Re: Kill thread or at least socket.getaddrinfo

2007-04-10 Thread [EMAIL PROTECTED]
On 26 Mar., 18:08, [EMAIL PROTECTED] wrote: > you know the pid, you can kill it, but that's not always a > clean way of accomplishing the task. So I have to open the connection in a new process... Sigh.. How I hate this part of Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: Kill thread or at least socket.getaddrinfo

2007-03-26 Thread kyosohma
On Mar 26, 10:53 am, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: > Hi, I'm writing an application that connects to the internet. > Something like this: > > for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM): > af, socktype, proto, canonname, sa = res > try: > self.s

Kill thread or at least socket.getaddrinfo

2007-03-26 Thread Thomas Dybdahl Ahle
Hi, I'm writing an application that connects to the internet. Something like this: for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res try: self.sock = socket.socket(af, socktype, proto) Now if the user press the cancel button