By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,672 Members | 1,306 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,672 IT Pros & Developers. It's quick & easy.

recursive import

P: n/a
Hi, I'm just toying around with some ideas at the moment.

Is there an easy and safe way to recursivly import all modules under a
particular namespace?

Say, I had modules:


I want to import all the modules in the foo namespace, so the first
four modules in that list.

Other then having those modules explicitly import their children, or
explicitly importing them all from where I want to use them, can I do
this? Should I do this?

The idea is that function decorates 'register' functions in those
modules, so they become available without having to have a list of all
the modules that contain them, and without all the modules necessarily
needing to know about each other.
Jul 1 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.