I have written the simplest python code (module) :
def newplus(x, y):
return x*y
This is stored in a folder sabya (which is my package). The folder has _init_ and newplus.py files.
In my IDLE I can open the module sabya.newplus. When I give import sabya.newplus there is no error. but when I issue :
>>> sabya.newplus(2, 3)
I am getting this error
Traceback (most recent call last):
File "<pyshell#15>", line 1, in <module>
sabya.newplus(2, 3)
TypeError: 'module' object is not callable
'_init_' != '__init__'.