Module clarification

2008-07-28 Thread Hussein B
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

Re: Module clarification

2008-07-28 Thread Floris Bruynooghe
On Jul 28, 9:54 am, Hussein B [EMAIL PROTECTED] 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? An importable or runable (i.e. script) collection of

Re: Module clarification

2008-07-28 Thread Hussein B
On Jul 28, 6:55 am, Floris Bruynooghe [EMAIL PROTECTED] wrote: On Jul 28, 9:54 am, Hussein B [EMAIL PROTECTED] 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

Re: Module clarification

2008-07-28 Thread Diez B. Roggisch
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? Read the docs:

Re: Module clarification

2008-07-28 Thread Duncan Booth
Hussein B [EMAIL PROTECTED] wrote: If I have a couple of modules, is there a way to package them? or there is no such a thing in Python? It sounds rather as though you haven't yet gone through the Python tutorial. You really should read it, even if you just skim through it to see what

Re: Module clarification

2008-07-28 Thread Brett Ritter
On Jul 28, 4:54 am, Hussein B [EMAIL PROTECTED] 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? I'm new

Re: Module clarification

2008-07-28 Thread Hussein B
On Jul 28, 8:11 am, Duncan Booth [EMAIL PROTECTED] wrote: Hussein B [EMAIL PROTECTED] wrote: If I have a couple of modules, is there a way to package them? or there is no such a thing in Python? It sounds rather as though you haven't yet gone through the Python tutorial. You really should

Re: Module clarification

2008-07-28 Thread Marcus.CM
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

Re: Module clarification

2008-07-28 Thread Themis Bourdenas
I would recommend dive into python. Its available free online (just google it) and it tries to teach you python, not programming which unfortunately many books try to do. It assumes that you already have some experience with C++ or Java and contradicts python syntax/semantics to those languages.