Passing a callable object to Thread
skawaii
skawaii at gmail.com
Fri Feb 15 19:51:22 EST 2008
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....
More information about the Python-list
mailing list