Re: Unique thread ID

2008-01-18 Thread Benjamin
On Jan 18, 8:31 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 18 Jan 2008 22:41:47 -0300, Benjamin <[EMAIL PROTECTED]> > escribió: > > > On Jan 18, 2:31 am, Christian Heimes <[EMAIL PROTECTED]> wrote: > >> Benjamin wrote: > >> > Is there a way to obtain a unique ID for the current th

Re: Unique thread ID

2008-01-18 Thread Gabriel Genellina
En Fri, 18 Jan 2008 22:41:47 -0300, Benjamin <[EMAIL PROTECTED]> escribió: > On Jan 18, 2:31 am, Christian Heimes <[EMAIL PROTECTED]> wrote: >> Benjamin wrote: >> > Is there a way to obtain a unique ID for the current thread? I have an >> > object that I need to store local thread data in, and I

Re: Unique thread ID

2008-01-18 Thread Benjamin
On Jan 18, 2:31 am, Christian Heimes <[EMAIL PROTECTED]> wrote: > Benjamin wrote: > > Is there a way to obtain a unique ID for the current thread? I have an > > object that I need to store local thread data in, and I don't want to > > use threading.local because each thread might have multiple inst

Re: Unique thread ID

2008-01-18 Thread Christian Heimes
Benjamin wrote: > Is there a way to obtain a unique ID for the current thread? I have an > object that I need to store local thread data in, and I don't want to > use threading.local because each thread might have multiple instances > of my object. threading.get_ident() but please use threading.lo

Re: Unique thread ID

2008-01-18 Thread Diez B. Roggisch
Benjamin schrieb: > Is there a way to obtain a unique ID for the current thread? I have an > object that I need to store local thread data in, and I don't want to > use threading.local because each thread might have multiple instances > of my object. You can use the thread itself, it's usable as k