[Python-ideas] Timer that starts as soon as it is imported

Oleg Broytman phd at phdru.name
Fri May 22 12:58:47 CEST 2015


On Fri, May 22, 2015 at 12:59:30PM +0300, anatoly techtonik <techtonik at gmail.com> wrote:
> Is the idea to have timer that starts on import is good?

   No, because:

-- it could be imported at the wrong time;
-- it couldn't be "reimported"; what is the usage of one-time timer?
-- if it could be reset and restarted at need -- why not start it
   manually in the first place?

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-ideas mailing list