anonymous function?

Richie Hindle richie at
Wed Aug 18 14:08:58 CEST 2004

> t = threading.Timer(10.0, sendCheckCommand() )
> ...
> TypeError: 'NoneType' object is not callable

You are calling the sendCheckCommand function and passing its return value
(None) to threading.Timer().  You should say:

> t = threading.Timer(10.0, sendCheckCommand)


Richie Hindle
richie at

More information about the Python-list mailing list