From: Dave Kuhlman [EMAIL PROTECTED]
If you are importing a module from a directory other than your
current directory, then the directory is effectively a package.
In order to make a directory into a package, the directory must
contain a file named __init__.py.
That's not quite right.
Kermit Rose wrote:
Are you saying that any .py file that I save in math\factoring
can be imported?
Yes
You already have
many modules installed as part of the standard library and any
third-party add-ons you have installed.
**
Yes. I'm impressed with the listing in
Message: 7
Date: Wed, 07 Jun 2006 08:12:59 -0400
From: Kent Johnson [EMAIL PROTECTED]
Subject: Re: [Tutor] default module
Hi Kermit,
To make a module available for import, you just have to save it
somewhere on your Python path. There are several ways to do this,
***
Yes. By
On Wed, Jun 07, 2006 at 06:44:08PM -0400, Kermit Rose wrote:
[snip]
Yes. By some means that I don't remember I declared the file factor30.py
in directory
math\factoring
to be a module.
If you are importing a module from a directory other than your
current directory, then the