Re: Python Question

  • From: "R Dinger" <rrdinger@xxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 23 Sep 2010 18:54:24 -0700

Hi Jim,

As I understand things, a module in Python is first of all a file.  A module 
can contain many different Python object definitions like:
* simple variables
* function definitions
* class definitions

The module also provides a namespace for these definitions for referencing them 
in other modules.  The module is one of the basic structuring elements in the 
Python language.

The class in Python is, like most other object oriented languages, the 
mechanism for defining the state and behavior of class objects.  Python class 
objects, again like most object oriented languages, encapsulate state (or data) 
and behavior (functions) into a single software entity.

Richard
----- Original Message ----- 
  From: Homme, James 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Thursday, September 23, 2010 11:20 AM
  Subject: Python Question


  Hi,

  In Python, what are the differences between a module and a class? 

   

  Thanks.

   

  Jim

   

  Jim Homme,

  Usability Services,

  Phone: 412-544-1810. Skype: jim.homme

  Internal recipients,  Read my accessibility blog. Discuss accessibility here. 
Accessibility Wiki: Breaking news and accessibility advice

   



------------------------------------------------------------------------------
  This e-mail and any attachments to it are confidential and are intended 
solely for use of the individual or entity to whom they are addressed. If you 
have received this e-mail in error, please notify the sender immediately and 
then delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.

Other related posts: