[Tutor] brand spankin' newbie

Sheila King sheila@thinkspot.net
Fri, 08 Mar 2002 15:47:15 -0800


On Fri, 08 Mar 2002 13:47:53 -0800, Christopher T Palmer
<python@ctpdesign.com>  wrote about [Tutor] brand spankin' newbie:

> Hey all,
> 
> I just started in to learning Python a day or two ago (having come from C, 
> PERL, PBASIC, KSH scripting......) and have what I hope is a very simple 
> question.
> 
> I am wanting to use the poplib and smtplib in a script.  I found some info 
> on the modules, and at the end (of the poplib blurb, for example) it says 
> "At the end of the module, there is a test section that contains a more 
> extensive example of usage." which is what I am dying to get my hands on.
> 
> Where does one find the actual modules to download?  I have been looking 
> everywhere (although obviously not every everywhere)

You don't need to download the modules. They should already be installed on
the computer you are running Python on. Look in the directory where you
have installed Python (are you on a Windows or Other machine? this would
give us a bit more to go on....)

If Windows, then under the directory where you installed Python there is
probably a folder like

Python22

or 

Python21

or something like that (depending on the version number you installed).
Look inside that folder and you will find the Lib folder. Inside the Lib
folder you should find the poplib.py and smtplib.py files. Open in a text
editor (in read only mode would be good, so you don't accidentally change
the files...or make a copy and work with the copy instead).

On Linux, there is a lib folder somewhere 
(if it is installed system wide, look under
/usr/lib/python2.1
or
/usr/lib/python2.2

or something like that)

If you installed it in your own $HOME directory, it is probably under

$HOME/lib/python2.2

depending on version number. Again, inside this directory you should find
the files poplib.py and smtplib.py

HTH,

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/