O'Reilly logo
  • Chris Kang thinks this is interesting:

he module name for the main program is always '__main__

From

Cover of Python in a Nutshell, 3rd Edition

Note

"main" is the value, not an attribute name.