Module clarification

Marcus.CM marcus at internetnowasp.net
Mon Jul 28 13:57:27 EDT 2008


Hi Hussein,

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

Marcus.CM

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   Wow.py
> Wow.py is now a module and I can use it in other Python code:
> import Wow
>
> Thanks.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>   





More information about the Python-list mailing list