anonymous function?

Richie Hindle richie at entrian.com
Wed Aug 18 08:08:58 EDT 2004


[Benedict]
> 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)

instead.

-- 
Richie Hindle
richie at entrian.com




More information about the Python-list mailing list