Chris Kang thinks this is interesting: he module name for the main program is always '__main__ From 6. Modules from Python in a Nutshell, 3rd Edition by Steve Holden, Anna Ravenscroft, Alex Martelli Publisher: O'Reilly Media, Inc. Released: April 2017 Note "main" is the value, not an attribute name. Share this highlight http://learning.oreilly.com/a/python-in-a/20783397/ Twitter Facebook Google Plus Email Get Instant Access Now Start a Free Trial Have an account? Sign in.