optparse versus getopt

Matthew Sacks ntwrkd at gmail.com
Tue Feb 10 16:42:38 EST 2009


it seems as if optparse isn't in my standard library.
is there a way to add a lib like ruby gems?

On Tue, Feb 10, 2009 at 1:38 PM, Tim Chase
<python.list at tim.thechases.com> wrote:
> 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