[Python-Dev] Add a -z interpreter flag to execute a zip file

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Jul 14 04:58:33 CEST 2007

Andy C wrote:
> What does "if __name__ == '__main__" mean in
> __main__.py?  : )  If someone tries does import __main__ from another
> module in the program, won't that result in an infinite loop?

Is there a reason not to use __init__.py for this?


More information about the Python-Dev mailing list