[python-win32] class and modules

Larry Bates larry.bates at websafe.com
Sun Jul 27 04:08:47 CEST 2008


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:                                            def b:
>         
> 
>      def c:                            &nbs p;                def c:
> 
> Do I need to know more before asking this question. Fill in the blanks.
> 
> 
> Brgds,
> 
> 
> kNish
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32

There is not difference in how you "call" them.  They are both functions that 
take arguments and can optionally return values.  The difference is that in the 
class you can more easily maintain other information (like state) that can be 
used to effect the calls.

-Larry



More information about the python-win32 mailing list