> Now, as indicated I don't really know what object to send in to the > hasattr function, indicated with "???" - is what I'm trying to do > possible, and how should I in case do it? How about: if globals().has_key("func1"): print "This module defines func1" else: print "This one doesn't" Hope this helps, Lyle