[Tutor] How to kill a thread

Oscar Benjamin oscar.j.benjamin at gmail.com
Mon Nov 23 05:07:36 EST 2015


On 23 November 2015 at 01:42, CMG Thrissur <cmgcomsol at gmail.com> 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.connect(user='root',password=pas,host='localhost',database=db)
> cursor = cnx.cursor() def ProcessList(domain:str): ''' :paramdomain:din,
> dcom etc :return: ''' query='select url from urls where (%s="" or
> %s<curdate()) and %s<curdate()-1'%(domain,domain,domain+'lastcheck') print
> (query) cursor.execute(query) tmplist=[] for url in cursor:
> tmplist.append(url[0]) return tmplist #print

--
Oscar


More information about the Tutor mailing list