On Wed, Nov 24, 2010 at 3:00 PM, Evert Rol <evert....@gmail.com> wrote:


> Then you haven't read my previous response carefully enough, or I haven't 
> phrased it properly. The example I gave was:
>
>>>> import mymodule
>>>> mymodule.X
>
> where X is defined in a file called mymodule.py
> In your case, replace mymodule with test, and X with words.

No, you had phrased it perfectly. I just read your answer too fast. My bad.

> Also, really, read the tutorial on modules. I know we tutor here, but those 
> tutorials are there to explain the most common cases (and the standard Python 
> tutorial isn't the only tutorial, but since it comes with Python, it's the 
> one I generally point to).
> Of course, if something is unclear in the tutorial, let us know!

You are right. I didn't read the link because I assumed it would be
general information about modules and I didn't connect that with the
problem I was having using the interactive shell. No I checked it and
saw that, in fact, the relevant information was right there in the
first paragraphs. My apologies. Thanks for your help.


Josep M.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to