Lists and Tuples

Fredrik Lundh fredrik at pythonware.com
Sun Dec 7 22:29:51 CET 2003


Robert Brewer wrote:

> Now if somebody can just figure out why:
>
>     threading.Thread(args=())
>
> but:
>
>     threading.Timer(args=[])
>
> we'll have this topic nailed down pretty well. ;)

different authors; the threading module itself is really old (1.5?),
but the Timer class was added in 2.2, and nobody spotted the
inconsistency at that time.

not sure if this can/should be fixed; there might be someone out
there doing:

    t = threading.Timer(interval, function)
    t.args.append(value)
    t.start()

</F>








More information about the Python-list mailing list