Re: thread variable scope with start_new_thread

2005-11-10 Thread Fredrik Lundh
"Luxore" <[EMAIL PROTECTED]> wrote: > I am trying to create threaded python project and I'm running into some > weird Python variable scoping. the "weird scoping" you're seeing has nothing to do with threads (read on) > I am using the "thread" module (I know, it's old and I should be using > thr

thread variable scope with start_new_thread

2005-11-10 Thread Luxore
Hello, I am trying to create threaded python project and I'm running into some weird Python variable scoping. I am using the "thread" module (I know, it's old and I should be using threading)... but for example: import thread def extract_archive(session, user, archive, dest=None): job_id =