All Things Pythonic Python main() functions by Guido van van Rossum May 16, 2003 Summary For Python programmers, I've got some suggestions on how to write a main() function that's easy to invoke in other contexts, e.g. from the interactive Python prompt when you feel like experimenting. I've written a few main() functions in my time. They usually have a structure roughly like this: """Module docst