GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — webbrowser.py update to use argparse.py · Issue #68583 · python/cpython

webbrowser.py update to use argparse.py #68583

New issue
Copy link
New issue
Copy link
Closed
Closed
webbrowser.py update to use argparse.py#68583
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

HasanDiwan
mannequin
opened on Jun 6, 2015
Issue body actions
BPO 24395
Nosy @birkenfeld, @berkerpeksag
Files
  • webbrowser.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2015-06-06.15:22:59.767>
    labels = ['type-feature', 'library']
    title = 'webbrowser.py update to use argparse.py'
    updated_at = <Date 2019-03-15.22:00:55.953>
    user = 'https://bugs.python.org/HasanDiwan'

    bugs.python.org fields:

    activity = <Date 2019-03-15.22:00:55.953>
    actor = 'BreamoreBoy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2015-06-06.15:22:59.767>
    creator = 'Hasan Diwan'
    dependencies = []
    files = ['39641']
    hgrepos = []
    issue_num = 24395
    keywords = []
    message_count = 3.0
    messages = ['244913', '244915', '244918']
    nosy_count = 3.0
    nosy_names = ['georg.brandl', 'berker.peksag', 'Hasan Diwan']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue24395'
    versions = ['Python 3.6']

    Linked PRs

    • gh-68583: webbrowser: replace getopt with argparse, add long options #117047

    Activity

    1. HasanDiwan commented on Jun 6, 2015

      @HasanDiwan
      HasanDiwanmannequin
      on Jun 6, 2015
      MannequinAuthor
      More actions

      The webbrowser module uses getopt, which needs to be ripped out and replaced with argparse. The attached file does just this.

    2. HasanDiwan
      added
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancementA feature request or enhancement
      on Jun 6, 2015
    3. berkerpeksag commented on Jun 6, 2015

      @berkerpeksag
      berkerpeksag
      on Jun 6, 2015
      Member
      More actions

      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
    4. BreamoreBoy commented on Jun 6, 2015

      @BreamoreBoy
      BreamoreBoymannequin
      on Jun 6, 2015
      Mannequin
      More actions

      This strikes me as pointless code churn.

    5. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    6. erlend-aasland
      added this to Argparse issueson May 19, 2022
    7. erlend-aasland
      moved this to Features in Argparse issueson May 19, 2022
    8. CAM-Gerlach commented on Jun 13, 2023

      @CAM-Gerlach
      CAM-Gerlach
      on Jun 13, 2023
      Member
      More actions

      Just to confirm, getopt is still used in webbrowser as of the beginning of the Python 3.13 cycle. Replacing it with argparse would improve usability, reduce manual argument parsing code and avoid the use of a legacy module, per #105735

      Reacted by James De Bias
    9. hugovk commented on Mar 19, 2024

      @hugovk
      hugovk
      on Mar 19, 2024
      Member
      More actions

      Please see PR #117047.

    10. hugovk
      added a commit that references this issue on Apr 13, 2024

      gh-68583: webbrowser: replace `getopt` with `argparse`, add long opti…

      56ed979
    11. hugovk
      closed this as completedon Apr 13, 2024
    12. github-project-automation
      moved this from Features to Doc issues in Argparse issueson Apr 13, 2024
    13. diegorusso
      added a commit that references this issue on Apr 17, 2024

      pythongh-68583: webbrowser: replace `getopt` with `argparse`, add lon…

      7c2eb8a
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

      Projects

      • Argparse issues
        Status
        Doc issues
        Show more project fields

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.