[Tutor] grouping modules?

Alan Gauld alan.gauld@blueyonder.co.uk
Mon May 12 18:48:01 2003


> I am wondering if there is some functionality to group modules in
> Python, similar to Java packages. Or is there another way to
organize
> code into logical units (apart from modules)?

Python does have a package mechanism and indeed some of the library
modules use it, for example os.path is a "module within a module",
in other words they combine as a package.

In Python the mechanism is based on file lovcation and some other
conventions. Look at section 6.4 of the official tutorial in the
online docs to see how it all works.

HTH,

Alan G.