Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > __import__ returns module without it's attributes?

Thread Tools

__import__ returns module without it's attributes?

Zac Burns
Posts: n/a
I've overloaded __import__ to modify modules after they are
imported... but running dir(module) on the result only returns
__builtins__, __doc__, __file__,
__name__, __package__, and __path__.

Why is this? More importantly, where can I hook in that would allow me
to see the contents of the module?

Zachary Burns
Aim - Zac256FL
Production Engineer (Digital Overlord)
Zindagi Games
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
__import__(x) VS __import__(x, {}, {}, ['']) Phil Python 2 08-24-2009 02:58 AM
Does __import__ require a module to have a .py suffix? mrstephengross Python 4 03-19-2008 02:37 AM
dynamic module loading via __import__, nonetype? John Allman Python 0 10-16-2006 04:33 PM
__import__ Coder Coder Python 4 05-08-2004 09:33 AM
__import__() with packages Marco Herrn Python 5 04-06-2004 07:47 AM