This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author marklodato
Recipients bethard, eric.smith, loewis, marklodato, orsenthil, rickysarraf
Date 2009-08-29.01:43:20
SpamBayes Score 3.4329835e-06
Marked as misclassified No
Message-id <1251510203.17.0.589920548128.issue6247@psf.upfronthosting.co.za>
In-reply-to
Content
I would also like to voice support for including argparse in the
standard library.  It seems silly to deny a module from being added just
because we already have two inferior ones.  Argparse adds so many new
(and badly needed!) features that it would be very difficult to make a
backwards-compatible wrapper around ArgumentParser.  It would be much
easier, and less error-prone, to leave optparse as-is and just add this
module in addition.

If the problem is having a third module clutter up the module list,
here's a simple solution: rename the existing optparse to _optparse,
rename argparse to optparse, and in (the new) optparse, from _optparse
import *.  Done.  Now you have a backwards-compatible OptionParser
(which ought to be deprecated), and the new ArgumentParser.  Would this
solution work?
History
Date User Action Args
2009-08-29 01:43:23marklodatosetrecipients: + marklodato, loewis, orsenthil, bethard, eric.smith, rickysarraf
2009-08-29 01:43:23marklodatosetmessageid: <1251510203.17.0.589920548128.issue6247@psf.upfronthosting.co.za>
2009-08-29 01:43:21marklodatolinkissue6247 messages
2009-08-29 01:43:20marklodatocreate