[New-bugs-announce] [issue16799] switch regrtest from getopt-style options to argparse Namespace object

Chris Jerdonek report at bugs.python.org
Fri Dec 28 04:11:11 CET 2012


New submission from Chris Jerdonek:

Issue 15302 switched regrtest from getopt to argparse for parsing options.  However, regrtest.main() still expects and operates on getopt-style options.

This issue is to continue the regrtest refactoring and replace the use of getopt-style options with an argparse Namespace object.

This issue should probably be a meta-issue with the transition happening over several issues/commits, as there are many command-line options that will probably have varying types and actions (in the sense of argparse).  Options can be switched over incrementally in groups (e.g. by having the _parse_args() function return the parsed options in both forms: in both getopt-style format and a Namespace object).

This issue will be completed when the namespace-to-getopt "bridge code" is removed -- probably along with the corresponding argparse-to-getopt tests.

----------
components: Tests
messages: 178356
nosy: chris.jerdonek
priority: normal
severity: normal
status: open
title: switch regrtest from getopt-style options to argparse Namespace object
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16799>
_______________________________________


More information about the New-bugs-announce mailing list