[IPython-user] access to __main__

Robert Kern robert.kern@gmail....
Wed Oct 7 10:26:13 CDT 2009

On 2009-10-07 07:32 AM, Jean-Francois Moulin wrote:

> Side comment, if you have a strong opinion or tips about sharing global
> flags across modules, please express yourself but please note that the
> core of my question really is about ipython, not about using __main__ as
> a mailbox!

Use module specifically for that purpose, not __main__. IPython needs to fiddle 
with __main__ in various ways (since it is a Python program running other Python 
programs in the same process), and that is interfering with your attempted use here.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the IPython-user mailing list