mail.
Mi
puoi/potete dare la conferma?
-Original Message-From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On
Behalf Of Fredo CorleoneSent: sabato 30 settembre 2006
13.58To: python@lists.python.itSubject: Re: [Python]
threading.Timer
>
Volevo realizzare un p
Credo
anch'io sia un problema dell'IDE visto che da una PyShell funziona
correttamente.
-Original Message-From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On
Behalf Of Fredo CorleoneSent: sabato 30 settembre 2006
13.58To: python@lists.python.itSubject: R
: Re: [Python] threading.Timer
Alle 14:02, sabato 30 settembre 2006, grullonet by AliceADSL ha scritto:
> from threading import *
>
> def hello():
> print "hello, world"
>
> t = Timer(30.0, hello)
> t.start() # after 30 seconds, "hello, world" will be
> Volevo realizzare un piccolo programmino che ogni tot secondi esegue> una determinata operazione.
Forse è un problema legato all'IDE, non saprei.Comunque se non ti interessa il multithreading puoi considerare l'utilizzo
di sched.http://docs.python.org/lib/module-sched.htmlimport sched, time
s = s
Alle 14:02, sabato 30 settembre 2006, grullonet by AliceADSL ha scritto:
> from threading import *
>
> def hello():
> print "hello, world"
>
> t = Timer(30.0, hello)
> t.start() # after 30 seconds, "hello, world" will be printed
>
> Quando lo lancio non funziona...
Puoi essere piu` preciso? "N