python - Is there a way to give parts of the local namespace to an importee? -
a.py:
import b import c ... import z class foo(object): ... each of thoses module b-z needs use class foo.
is way, importing, allows indirect access (e.g. via object) values of modules a-z, while still allowing each module b-z access a's namespace (e.g. foo).
no. must each in turn import a themselves.
Comments
Post a Comment