optparse versus getopt

Tim Chase python.list at tim.thechases.com
Tue Feb 10 16:38:35 EST 2009


Matthew Sacks wrote:
> does anyone have any arguments against optparse vs getopt

I've found that the optparse module beats getopt on *every* 
aspect except in the event that you have experience with the C 
getopt libraries *and* just want something that behaves like 
those libraries.  Optparse is easy to learn, easy to read, and 
part of the Python stdlib.

-tkc







More information about the Python-list mailing list