How to get the list of imported variables/functions

Emile van Sebille emile at fenx.com
Tue May 2 17:39:14 CEST 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.

HTH,

Emile van Sebille
emile at fenx.com
-------------------







More information about the Python-list mailing list