SimonVC wrote: > How do you use getattr() to get a refernce to a function defined in > the default namespace.. If you must use getattr, and you're doing this in a module, try: import sys def b(): pass print getattr(sys.modules[__name__], 'b') FuManChu