On Sat, Jul 31, 2010 at 11:07 AM, Nick Coghlan <ncogh...@gmail.com> wrote:
..
> That said, I really don't think catching such a rare error is worth
> *any* runtime overhead. Just making "__main__" and the real module
> name refer to the same object in sys.modules is a different matter,
> but I'm not confident enough that I fully grasp the implications to do
> it without gathering feedback from a wider audience.

If you make sys.module['__main__'] and sys.module['modname'] the same
(let's call it mod), what will be the value of mod.__name__?
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to