Inheriting Python modules?
Timo Linna
timo.SPAM.linna at iki.ME.fi.NOT.invalid
Tue Dec 18 12:10:19 EST 2001
Hi,
How should "dynamic module inheritance" be implemented with Python?
Example:
It should be possible to write: "import defaults" so that it would first
import everything from common.defaults -module and after that other stuff
from product.defaults-module. Content of both modules should be accessible
through one common (defaults) interface so that the caller wouldn't have to
know from which module the code is actually accessed.
I would NOT like to create "dummy" logical defaults-module which would
simply import both modules - things should happen automatically at runtime.
BR,
timo
More information about the Python-list
mailing list