In the Python module "Wave" I can use the following syntax:
import wave
wave.open("test.wav", "rb")
This works perfectly fine.Let's say I wanted to use my own initialization of a class:
class Wave():
def __init__(self):
pass;
def Open(self, fileName, Type):
return True; # Just testing
Now If I have "main" which calls this class, why can't I do the following?:
if Wave.Open("testing.wav", "rb"):
print "The file is open"
TypeError: unbound method Open() must be called with Wave instance as first argument (got str instance instead)