Passing a callable object to Thread
Benjamin
musiccomposition at gmail.com
Fri Feb 15 22:21:59 EST 2008
On Feb 15, 6:51 pm, skawaii <skaw... at gmail.com> wrote:
> On Feb 15, 7:23 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
>
> > t = th.Thread(target=tribalwars.populate_all_tribes, args=("data/w7/",))
>
> Thanks, that did it. After playing around in the interpreter a bit, I
> realize now that args=("data/w7/") doesn't create a tuple, like I
> thought it would. I have to say, though, having to add a comma at the
> end is hideous syntax....
You could type args=tuple("data/w7/").
More information about the Python-list
mailing list