What Are These Import/From Statements about?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Aug 23 04:19:00 EDT 2007


In message <mailman.139.1187815633.32294.python-list at python.org>, Robert
Kern wrote:

> os.path. It's a sub-module of the standard os module.

Actually, there are no such things as sub-modules (as you'll find out if you
try to define one). What it really is is a variable in that module, which
points to another module (e.g. posixpath).



More information about the Python-list mailing list