In article <hun8s4$h4...@news.albasani.net>, WH  <whz...@gmail.com> 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 (a...@pythoncraft.com)           <*>         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

Reply via email to