[python-win32] class and modules

2008-07-26 Thread kNish
Hi, I went thru the notes. I said i will understand when the group explains this to me. How much difference does it make to call a module as it and call it as being part of a class. Say Class a: def b:def b: def c:

Re: [python-win32] class and modules

2008-07-26 Thread Gerdus van Zyl
Wel firstly it won't work, the class should be: class a(object): def b(self): print b def c(self): print c so to call b you first need instance of object: myA = a() myA.b() I am not really understanding what you wish to achieve. Also you say I went thru the notes., what

Re: [python-win32] class and modules

2008-07-26 Thread Larry Bates
kNish wrote: Hi, I went thru the notes. I said i will understand when the group explains this to me. How much difference does it make to call a module as it and call it as being part of a class. Say Class a: def b: