RE: [Python] threading.Timer

2006-09-30 Per discussione grullonet by AliceADSL
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

RE: [Python] threading.Timer

2006-09-30 Per discussione grullonet by AliceADSL
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

2006-09-30 Per discussione grullonet by AliceADSL
: 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

Re: [Python] threading.Timer

2006-09-30 Per discussione Fredo Corleone
> 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

Re: [Python] threading.Timer

2006-09-30 Per discussione Eriol
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