Re: [Tutor] How to kill a thread

2015-11-24 Thread Peter Otten
CMG Thrissur wrote: > Thank you all. i have pasted the code on pastebin. > > http://pastebin.com/embed_iframe.php?i=kHAUJQC2 > > My one main question in the code is that there are times when my thread > using pythonwhois hangs up the process by statying active very long > time. can i hope for

Re: [Tutor] How to kill a thread

2015-11-23 Thread CMG Thrissur
Thank you all. i have pasted the code on pastebin. http://pastebin.com/embed_iframe.php?i=kHAUJQC2 My one main question in the code is that there are times when my thread using pythonwhois hangs up the process by statying active very long time. can i hope for a better solution to this proble

Re: [Tutor] How to kill a thread

2015-11-23 Thread Laura Creighton
Yes, in Thunderbird disabling the flowing is separate from setting plain text. http://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Flowed_format see: 'Completely plain email' right down on the bottom of the page. That is what you want. Laura ___

Re: [Tutor] How to kill a thread

2015-11-23 Thread Steven D'Aprano
On Mon, Nov 23, 2015 at 10:07:36AM +, Oscar Benjamin wrote: > On 23 November 2015 at 01:42, CMG Thrissur wrote: > > Is the below text in plain text? I am using thunderbird. > > No it isn't. I've kept the first part of it so you can see how it looks: Looks like plain text to me. CMG's email

Re: [Tutor] How to kill a thread

2015-11-23 Thread Oscar Benjamin
On 23 November 2015 at 01:42, CMG Thrissur wrote: > Is the below text in plain text? I am using thunderbird. No it isn't. I've kept the first part of it so you can see how it looks: > import datetime import time import mysql.connector import threading import > pythonwhois cnx = > mysql.connector

Re: [Tutor] How to kill a thread

2015-11-23 Thread Steven D'Aprano
On Mon, Nov 23, 2015 at 07:12:29AM +0530, CMG Thrissur wrote: > Is the below text in plain text? I am using thunderbird. Yes, it is plain text, but the word-wrapping of the text is completely broken, as you should be able to see below: > import datetime import time import mysql.connector import

Re: [Tutor] How to kill a thread

2015-11-23 Thread Steven D'Aprano
On Mon, Nov 23, 2015 at 09:58:50AM +, Alan Gauld wrote: > On 23/11/15 01:42, CMG Thrissur wrote: > > >>Since spacing is significant in python, there is no way we > >>can tell what it is your code is doing until you get gmail to > >>behave. > >> > >>Laura > >Is the below text in plain text? I a

Re: [Tutor] How to kill a thread

2015-11-23 Thread Alan Gauld
On 23/11/15 01:42, CMG Thrissur wrote: Since spacing is significant in python, there is no way we can tell what it is your code is doing until you get gmail to behave. Laura Is the below text in plain text? I am using thunderbird. Nope import datetime import time import mysql.connector i

Re: [Tutor] How to kill a thread

2015-11-23 Thread CMG Thrissur
On Monday 23 November 2015 12:12 AM, Laura Creighton wrote: In a message of Sun, 22 Nov 2015 21:40:13 +0530, CMG Thrissur writes: On Sunday 22 November 2015 05:24 PM, Laura Creighton wrote: In a message of Sun, 22 Nov 2015 11:23:58 +0530, CMG Thrissur writes: Hello, I have seen some exampl

Re: [Tutor] How to kill a thread

2015-11-22 Thread Laura Creighton
In a message of Sun, 22 Nov 2015 21:40:13 +0530, CMG Thrissur writes: > > > >On Sunday 22 November 2015 05:24 PM, Laura Creighton wrote: >> In a message of Sun, 22 Nov 2015 11:23:58 +0530, CMG Thrissur writes: >>> Hello, I have seen some examples of terminating a thread the safe >>> way. But is th

Re: [Tutor] How to kill a thread

2015-11-22 Thread CMG Thrissur
On Sunday 22 November 2015 05:24 PM, Laura Creighton wrote: In a message of Sun, 22 Nov 2015 11:23:58 +0530, CMG Thrissur writes: Hello, I have seen some examples of terminating a thread the safe way. But is there a way to kill a thread without worrying about what happens next. Like thread.st

Re: [Tutor] How to kill a thread

2015-11-22 Thread Laura Creighton
In a message of Sun, 22 Nov 2015 11:23:58 +0530, CMG Thrissur writes: >Hello, > >I have seen some examples of terminating a thread the safe way. But is >there a way to kill a thread without worrying about what happens next. >Like thread.stop() or something > >George import sys sys.exit(1) This

Re: [Tutor] How to kill a thread

2015-11-22 Thread Steven D'Aprano
On Sun, Nov 22, 2015 at 11:23:58AM +0530, CMG Thrissur wrote: > Hello, > > I have seen some examples of terminating a thread the safe way. But is > there a way to kill a thread without worrying about what happens next. > Like thread.stop() or something No. Threads in Python cannot be killed.

[Tutor] How to kill a thread

2015-11-22 Thread CMG Thrissur
Hello, I have seen some examples of terminating a thread the safe way. But is there a way to kill a thread without worrying about what happens next. Like thread.stop() or something George ___ Tutor maillist - Tutor@python.org To unsubscribe or c