Re: Threads and import

2008-05-29 Thread Rhamphoryncus
On May 28, 1:14 pm, [EMAIL PROTECTED] wrote: > Hi, > > I'm trying to work out some strange (to me) behaviour that I see when > running a python script in two different ways (I've inherited some > code that needs to be maintained and integrated with another lump of > code). The sample script is: > >

Re: Threads and import

2008-05-28 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Hi, > > I'm trying to work out some strange (to me) behaviour that I see when > running a python script in two different ways (I've inherited some > code that needs to be maintained and integrated with another lump of > code). The sample script is: > > # Sample script,

Re: Threads and import

2008-05-28 Thread Diez B. Roggisch
Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. import TestThread # from TestThread.py If I use python 2.5, this doesn't happen - instead, the module ist just run. If I use py

Re: Threads and import

2008-05-28 Thread rsoh . woodhouse
On May 28, 10:24 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > > > On May 28, 8:52 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] schrieb: > > >>> On May 28, 8:26 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECT

Re: Threads and import

2008-05-28 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: On May 28, 8:52 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] schrieb: On May 28, 8:26 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] schrieb: Hi, I'm trying to work out some strange (to me) behaviour that I see when run

Re: Threads and import

2008-05-28 Thread rsoh . woodhouse
On May 28, 8:52 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > > > On May 28, 8:26 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] schrieb: > > >>> Hi, > >>> I'm trying to work out some strange (to me) behaviour that I see when > >>> ru

Re: Threads and import

2008-05-28 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: On May 28, 8:26 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] schrieb: Hi, I'm trying to work out some strange (to me) behaviour that I see when running a python script in two different ways (I've inherited some code that needs to be maintaine

Re: Threads and import

2008-05-28 Thread rsoh . woodhouse
On May 28, 8:26 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > > > Hi, > > > I'm trying to work out some strange (to me) behaviour that I see when > > running a python script in two different ways (I've inherited some > > code that needs to be maintained and in

Re: Threads and import

2008-05-28 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: Hi, I'm trying to work out some strange (to me) behaviour that I see when running a python script in two different ways (I've inherited some code that needs to be maintained and integrated with another lump of code). The sample script is: # Sample script, simply creat

Threads and import

2008-05-28 Thread rsoh . woodhouse
Hi, I'm trying to work out some strange (to me) behaviour that I see when running a python script in two different ways (I've inherited some code that needs to be maintained and integrated with another lump of code). The sample script is: # Sample script, simply create a new thread and run a # re