[stdlib-sig] should we try to add argparse?

Steven Bethard steven.bethard at gmail.com
Fri Sep 11 09:38:25 CEST 2009


On Thu, Sep 10, 2009 at 3:55 PM, Collin Winter <collinw at gmail.com> wrote:
> Honest question, having only read the docs about argparse: would it be
> possible to merge the functionality of argparse into optparse and so
> preserve a greater measure of backwards compatibility? Some of the
> stuff I'm reading about in
> http://argparse.googlecode.com/svn/trunk/doc/argparse-vs-optparse.html
> looks like it should be able to be integrated fairly easily into the
> existing optparse structure.

I tried this, and when I originally started argparse, it was my intent
to make it fully compatible with optparse. For a simple example,
consider the documented "parser.largs", "parser.rargs" and
"parser.values" attributes of OptionParser. Supporting these would not
allow argparse's current parsing strategy, which doesn't follow the
optparse approach of moving args from "largs" to "rargs".

Steve
-- 
Where did you get that preposterous hypothesis?
Did Steve tell you that?
        --- The Hiphopopotamus


More information about the stdlib-sig mailing list