Re: [Tutor] aliasing an imported module

2010-02-13 Thread Steven D'Aprano
On Sat, 13 Feb 2010 10:51:38 am Garry Willgoose wrote: > I want to be able to import multiple instances of a module and call > each by a unique name and it doesn't appear at first glance that > either import or __import__ have what I need. No, such a thing is not officially supported by Python.

Re: [Tutor] aliasing an imported module

2010-02-12 Thread Alan Gauld
"Garry Willgoose" wrote I want to be able to import multiple instances of a module and call each by a unique name and it doesn't appear at first glance that either import or __import__ have what I need. No because it would be bad practice. Stateful modules lead to hard to debug prolems.

[Tutor] aliasing an imported module

2010-02-12 Thread Garry Willgoose
I want to be able to import multiple instances of a module and call each by a unique name and it doesn't appear at first glance that either import or __import__ have what I need. I need this because of computing platform I have developed where users write python scripts to do some analysis