
Nov. 25, 2013
10:56 a.m.
On Tue, Nov 26, 2013 at 2:35 AM, Ron Adam <ron3200@gmail.com> wrote:
But in this case...
__main__ = "__main__" __name__ = __main__ assert __main__ is __name__
That should always work. I would think it was a bug if it didn't.
Of course, that will work. But this isn't guaranteed to: __main__ = "__main__" __name__ = "__main__" assert __main__ is __name__ It quite possibly will, but it's not guaranteed by the language. And this is more what's being done here - a separate literal. ChrisA