class or thread id count

NighterNet darkneter at gmail.com
Thu Jul 30 14:13:44 EDT 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