Strange threading behaviour

Rotwang sg552 at hotmail.co.uk
Thu Jun 21 15:44:41 EDT 2012


On 21/06/2012 19:28, Dave Angel wrote:
> On 06/21/2012 02:03 PM, Rotwang wrote:
>> [...]
>>
>> In fact, running the module directly from the command line makes it
>> work properly as-is.
>
> But if you leave it as-is, then you can't run it from the interactive
> interpreter.

Right, thanks.


>> Thanks for your post.
>>
>
> just for completeness, see link;
> http://docs.python.org/library/threading.html
>
> " ... an import should not have the side effect of spawning a new thread
> and then waiting for that thread in any way..."

Ah, I missed that.


-- 
Hate music? Then you'll hate this:

http://tinyurl.com/psymix



More information about the Python-list mailing list