 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
>>> import package.amodule
|
|
|
| • |
Imports
a package containg amodule
|
|
|
| • |
In the
filesystem:
|
|
|
…/package/
|
|
|
…/package/__init__.py
|
|
|
…/package/amodule.py
|
|
|
| • |
The
directory package must be in PYTHONPATH
|
|
|
| • |
__init__.py
may be empty.
|
|
|
| • |
Attribute
access is fully qualified
|
|
|
>>> package.amodule.an_attribute
|