class or thread id count

NighterNet darkneter at gmail.com
Thu Jul 30 20:13:44 CEST 2009


Need some help on doing some bit simple id count. It like every time
it create a class or thread there is id++. Python 3.1

example:
class ClientThread (threading.Thread):
   def __init__(self,clientSocket):
      threading.Thread.__init__(self)
         self.id += 1;

Not sure it how it works.



More information about the Python-list mailing list