Using the imp module
Steve Holden
steve at holdenweb.com
Tue Oct 10 09:59:06 EDT 2006
Claus Tondering wrote:
> I understand that you can use the imp module to programmatically mimic
> the "import xyzzy" statement.
>
> But is there any way to programmatically mimic the "from xyzzy import
> *" statment?
>
See the docs for __import__().
I think imp is pretty much dead nowadays.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list