anonymous function?

Richie Hindle richie at entrian.com
Wed Aug 18 14:08:58 CEST 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