how can I block a thread until some other thread finished?

2006-12-12 Thread bearsprite
I start a thread A. In A, I start thread B,C,D,...

How can I block A until B,C,D,...(All the thread started by A) finished?

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: how can I block a thread until some other thread finished?

2006-12-12 Thread bearsprite
I think I need some implement like win32 API WaitForMultiObject.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how can i write a hello world in chinese with python

2006-12-12 Thread bearsprite
try unicode?

"kernel1983 写道:
"
> I'm try to build a bundle on OS X, so I write a simple python script
> for a test:
>
> #!/usr/bin/env python
> import EasyDialogs
> EasyDialogs.Message("Hello,Mac!")
>
>
> This runs OK,but when I try to replace "Hello,Mac!" with chinese, it
> can't be display rightly.
> Then I tried some way else:
>
> #!/usr/bin/env python
> import EasyDialogs
> EasyDialogs.Message("\xe4\xb8\xad")
>
> It doesn't work!
>
> As I know mac is unicode based,how can I display chinese on the screen?

-- 
http://mail.python.org/mailman/listinfo/python-list