[Ncr-Python.in] What is wrong in this declaration ?
Narendra Sisodiya
narendra at narendrasisodiya.com
Sun Apr 10 04:03:38 CEST 2011
On Sun, Apr 10, 2011 at 4:37 AM, Narendra Sisodiya <
narendra at narendrasisodiya.com> wrote:
> class Function_Timer():
> def __init__(self, duration, function, args=[], kwargs={}):
>
> ???
>
> I am getting error
>
> import Function_Scheduler
> aa= Function_Scheduler.PythonTimer(5.0, hello)
>
> Traceback (most recent call last):
> File "<input>", line 1, in <module>
> TypeError: 'module' object is not callable
>
>
Problem Solved, -> I have changed class name to Function_Scheduler , things
are working now, but I do not know exact reason..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ncr-python.in/attachments/20110410/fd9958d4/attachment.html>
More information about the Ncr-Python.in
mailing list