Python: -m is for main

David M. Beazley · ;login:: the magazine of USENIX & SAGE · 2013

As Python programmers know, Python doesn’t really have a notion of a main() function like compiled languages such as C or Java. That is, there’s no dedicated function that you define as the entry point to your program. Instead, there is the concept of a “main” program module. The “main” module holds the contents of whatever file you tell Python to execute.

Read the paper · More papers on PaperTik