Re: class or thread id count

2009-07-31 Thread Gabriel Genellina
En Thu, 30 Jul 2009 17:09:36 -0300, NighterNet escribió: On Jul 30, 12:14 pm, r wrote: On Jul 30, 1:13 pm, NighterNet wrote: > Need some help on doing some bit simple id count. It like every time > it create a class orthreadthere is id++. Python 3.1 use a class atrribute class Person():

Re: class or thread id count

2009-07-30 Thread NighterNet
On Jul 30, 12:14 pm, r wrote: > On Jul 30, 1:13 pm, NighterNet wrote: > > > Need some help on doing some bit simple id count. It like every time > > it create a class orthreadthere is id++. Python 3.1 > > > example: > > class ClientThread (threading.Thread): > >    def __init__(self,clientSocket)

Re: class or thread id count

2009-07-30 Thread r
On Jul 30, 1:13 pm, NighterNet wrote: > 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) >

class or thread id count

2009-07-30 Thread NighterNet
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. --