Module clarification

Marcus.CM marcus at
Mon Jul 28 19:57:27 CEST 2008

Hi Hussein,

Basically a module is a FILE and is considered as a singleton model. Yes 
ur assumption is correct.
I recommend getting Mark Lutz Learning Python book to get you started.


Hussein B wrote:
> Hi.
> I'm a Java guy and I'm playing around Python these days...
> In Java, we organize our classes into packages and then jarring the
> packages into JAR files.
> What are modules in Python?
> What is the equivalent of modules in Java?
> Please correct me if I'm wrong:
> I saved my Python code under the file
> is now a module and I can use it in other Python code:
> import Wow
> Thanks.
> --

More information about the Python-list mailing list