Passing a callable object to Thread
Steve Holden
steve at holdenweb.com
Fri Feb 15 22:03:08 EST 2008
skawaii 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....
Assuming you're right, what alternative would you suggest? Would it
allow parenthesized expressions to retain their customary meaning?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list