[Ncr-Python.in] What is wrong in this declaration ?

Narendra Sisodiya narendra at narendrasisodiya.com
Sun Apr 10 01:07:50 CEST 2011


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

-- 
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ncr-python.in/attachments/20110410/e49c8980/attachment.html>


More information about the Ncr-Python.in mailing list