Structuring packages

Courageous jkraska1 at san.rr.com
Mon Jul 16 12:11:48 EDT 2001


On Mon, 16 Jul 2001 12:28:52 +0100, Sven Östring <s.ostring at ccsr.cam.ac.uk> wrote:

>The documentation at www.python.org expressed the structure of a package
>as a hierarchical filesystem, with subpackages being labelled as
>filenames.  However, there is more to this structure than is described -
>how is a package in Python actually structured, in terms of storing
>subpackages and linking subpackages into the main package?

It's just what it says it is, except that when a package is a directory, it is
expected that there will be an __init__.py file in the directory, IIRC. I don't
do this very often, so you'll want to double-check.

C//




More information about the Python-list mailing list