How to get the list of imported variables/functions

Emile van Sebille emile at
Tue May 2 11:39:14 EDT 2000

>>> a = dir()
>>> from string import *
>>> b = dir()
>>> for each in b:
 if not (each in a):
  print each

I couldn't get Mike's sys.module['imported_mod'].keys() to work,
and dir() of import * type thing doesn't do it.


Emile van Sebille
emile at

More information about the Python-list mailing list