home ¦ Archives ¦ Atom ¦ RSS

Python main()

python-logo.gif Somewhat dusty, but new to me. How Guido von Rossum, Python’s Benevolent Dictator for Life, writes main() functions. GvR discusses how to neatly and flexibly handle argv, exit codes, and usage errors. The discussion is worth reading as well.

Via Metalinguistic Abstraction

© 2008-2024 C. Ross Jam. Built using Pelican. Theme based upon Giulio Fidente’s original svbhack, and slightly modified by crossjam.