classification
Title: webbrowser.py update to use argparse.py
Type: enhancement Stage: needs patch
Components: Library (Lib) Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Hasan Diwan, berker.peksag, georg.brandl
Priority: normal Keywords:

Created on 2015-06-06 15:22 by Hasan Diwan, last changed 2019-03-15 22:00 by BreamoreBoy.

Files
File name Uploaded Description Edit
webbrowser.py Hasan Diwan, 2015-06-06 15:22
Messages (3)
msg244913 - (view) Author: Hasan Diwan (Hasan Diwan) Date: 2015-06-06 15:22
The webbrowser module uses getopt, which needs to be ripped out and replaced with argparse. The attached file does just this.
msg244915 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2015-06-06 15:37
Thanks!

A few comments:

* New features like this can only go into Python 3.6 (the "default" branch)
* The CLI is partially tested (see Lib/test/test_webbrowser.py). You'll need to add additional tests (e.g. add tests for the -t and -h options)
* It would be nice if you could send your changes in a patch format. Please see https://docs.python.org/devguide/patch.html for more information
msg244918 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2015-06-06 16:08
This strikes me as pointless code churn.
History
Date User Action Args
2019-03-15 22:00:55BreamoreBoysetnosy: - BreamoreBoy
2015-06-06 16:08:08BreamoreBoysetnosy: + BreamoreBoy
messages: + msg244918
2015-06-06 15:37:58berker.peksagsetversions: + Python 3.6, - Python 2.7
nosy: + berker.peksag

messages: + msg244915

stage: needs patch
2015-06-06 15:22:59Hasan Diwancreate