Problem with Dynamically unloading a module

Aahz aahz at pythoncraft.com
Tue Jan 12 21:27:37 EST 2010


In article <78388a7a-b148-499a-8894-34e55721eda3 at k19g2000pro.googlegroups.com>,
lordofcode  <ajay.bgr at gmail.com> wrote:
>
>Thanks you all for your replies ,cleared quiet a few doubts about
>importing modules and namespace references .
>Currently am going with static importing of all modules. But it may
>not be efficient in future as the number of interchangeable modules
>that I have to import may run in 30-40's.(Basically this Python code
>is part of larger GSM Testing project where each module represents one
>model of GSM mobile phone and this number keeps growing). So changing
>the design will be a last resort.

Worry when you have 30-40 hundreds of modules.  ;-)  Seriously, it's just
memory; Python's efficient dicts make lots of modules not a problem.

If/when it's time to worry, there are other techniques you can use.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair



More information about the Python-list mailing list