[Python-Dev] Hotshot

Guido van Rossum guido at python.org
Mon Jan 26 10:40:34 EST 2004


>     Walter> Maybe this script should use optparse instead of getopt?
> 
> How would optparse be better than getopt, especially for simple use
> such as this?

Optparse is *always* better than getopt, once you're used to it.  Even
for a single option it's usually fewer lines of code.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list