__import__ returns module without it's attributes?

Discussion in 'Python' started by Zac Burns, Nov 13, 2009.

  1. Zac Burns

    Zac Burns Guest

    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
    (407)590-4814
    Aim - Zac256FL
    Production Engineer (Digital Overlord)
    Zindagi Games
     
    Zac Burns, Nov 13, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marco Herrn

    __import__() with packages

    Marco Herrn, Apr 4, 2004, in forum: Python
    Replies:
    5
    Views:
    492
    Hung Jung Lu
    Apr 6, 2004
  2. Coder Coder

    __import__

    Coder Coder, May 8, 2004, in forum: Python
    Replies:
    4
    Views:
    739
    Heiko Wundram
    May 8, 2004
  3. John Allman
    Replies:
    0
    Views:
    287
    John Allman
    Oct 16, 2006
  4. mrstephengross
    Replies:
    4
    Views:
    413
    Gabriel Genellina
    Mar 19, 2008
  5. Phil
    Replies:
    2
    Views:
    476
Loading...

Share This Page