That worked nicely. Cheers Carl. (and everyone else who replied.) > >>> a = 1 > >>> namespace = __import__(__name__) > >>> getattr(namespace,'a') > 1