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():
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)
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)
>
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.
--