In article <[email protected]>, WH <[email protected]> wrote: > >'x' in getattr() should be a reference to the "__main__" module, right? >How to get it?
Just for the record, the best way to get a reference to __main__ is to import it: import __main__ -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ "If you don't know what your program is supposed to do, you'd better not start writing it." --Dijkstra -- http://mail.python.org/mailman/listinfo/python-list
