Consider this. I want to deny execution of Timer event:
threading.Timer(10, say_hello, ()).start()
# now for some reason my plans have changed
# is there a way to erase that Timer and deny execution of say_hello?
t = threading.Timer(10, say_hello, ()) t.start() # start timer t.cancel() # stop it