May 16, 2003
How to write a main() function in Python

Python main() functions, from the BDFL himself.

Most of my scripts have a main() function, looking pretty much like Guido's first example.

I particulary like Guido's main(argv=None) suggestion - I'll be using this in future.

Posted to Python by Simon Brunning at May 16, 2003 01:36 PM
Comments
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?