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

Steven Bethard steven.bethard at gmail.com
Fri Sep 11 09:54:53 CEST 2009


On Fri, Sep 11, 2009 at 12:52 AM, Steven Bethard
<steven.bethard at gmail.com> wrote:
> FWIW, I currently sit in the camp of adding big glaring "this module
> is deprecated" notes in the documentation for getopt and optparse, and
> sticking PendingDeprecation warnings into them. PendingDeprecation
> warnings are off by default so shouldn't cause problems for the vast
> majority of current users of these modules. We can switch those
> PendingDeprecation warnings to Deprecation warnings when, say, we see
> more hits for argparse than for optparse on Google code search. Right
> now, I see optparse at around 23,000 [1] and argparse at only around
> 400, so I imagine that would be at least a few years.

(And many of those 400 aren't even for the argparse package itself,
just other classes and methods with the same name.)

Steve

> [1]http://www.google.com/codesearch?q=optparse++lang:python&ct=rr&cs_r=lang:python
> [2]http://www.google.com/codesearch?q=argparse++lang:python&ct=rr&cs_r=lang:python
-- 
Where did you get that preposterous hypothesis?
Did Steve tell you that?
        --- The Hiphopopotamus


More information about the stdlib-sig mailing list