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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -